Family
class Family<T>(comparator: Comparator<Node<T>> = Comparator { a, b -> a.id.compareTo(b.id) }) : GenericGroup<T, Node<T>> , GroupWithLeader<T, Node<T>>
A Family is modeled as a group of pedestrians with a leader.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Given a non-empty list of points represented as vectors, this method finds the extreme coordinates (i.e. min and max coordinates) on the X-axis, these are used to create the returned ClosedRange.
Link copied to clipboard
Given a non-empty list of points represented as vectors, this method finds the extreme coordinates (i.e. min and max coordinates) on the Y-axis, these are used to create the returned ClosedRange.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a random element of the Iterable using the provided randomGenerator.
Link copied to clipboard
removes, if present, node from the group.
Link copied to clipboard
Takes the first percentage * size elements of the list.