Google.Maps.Util.Geometry.RadialComparison.RadialComparerXY

Compares Vector3s radially in the x-y plane around the given origin.

Summary

Inheritance

Inherits from: IComparer< Vector3 >

Constructors and Destructors

RadialComparerXY(Vector3 origin)
Constructs a new RadialComparerXY around the given point.

Public functions

Compare(Vector3 l, Vector3 r)
int
Compares l and r radially in the x-y plane around the given origin, in the continuous range of angles [0, 2*PI).

Public functions

Compare

int Compare(
  Vector3 l,
  Vector3 r
)

Compares l and r radially in the x-y plane around the given origin, in the continuous range of angles [0, 2*PI).

Details
Parameters
l
The left hand vector.
r
The right hand vector.
Returns
Negative if l is less than r , 0 if equal, and positive if greater.

RadialComparerXY

 RadialComparerXY(
  Vector3 origin
)

Constructs a new RadialComparerXY around the given point.

Details
Parameters
origin
The origin around which to compare vectors.