Google.Maps.Util.Geometry.RadialComparison.RadialComparer

Compares Vector2s radially around a given origin.

Summary

Inheritance

Inherits from: IComparer< Vector2 >

Constructors and Destructors

RadialComparer(Vector2 origin)
Constructs a new RadialComparer around the given point.

Public functions

Compare(Vector2 l, Vector2 r)
int
Compares l and r radially around Origin, in the continuous range of angles [0, 2*PI).

Public functions

Compare

int Compare(
  Vector2 l,
  Vector2 r
)

Compares l and r radially around 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.

RadialComparer

 RadialComparer(
  Vector2 origin
)

Constructs a new RadialComparer around the given point.

Details
Parameters
origin
The origin around which to compare vectors.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution