public static class PositionalVoiceGroup.CompareLocations extends java.lang.Object implements java.util.Comparator<GroupMember>
| Constructor and Description |
|---|
CompareLocations(Point center) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(GroupMember m1,
GroupMember m2)
Which speaker member is closer to the Listener whose location is center?
|
boolean |
equals(java.lang.Object other) |
Point |
getCenter() |
void |
setCenter(Point center) |
public CompareLocations(Point center)
public int compare(GroupMember m1, GroupMember m2)
compare in interface java.util.Comparator<GroupMember>m1 - The first member.m2 - The second member.public boolean equals(java.lang.Object other)
equals in interface java.util.Comparator<GroupMember>equals in class java.lang.Objectpublic Point getCenter()
public void setCenter(Point center)