CRaPI - Correct Robust and Perfect API

Positioner Members

Positioner overview

Public Static Methods

XToWorld Converts a X-coordinate to the coordinate system of the play field
YToWorld Converts a Y-coordinate to the coordinate system of the play field

Public Instance Constructors

Positioner Constructor Creates a Positioner object

Public Instance Properties

ResolutionGets and sets the resolution used for positioning

Public Instance Methods

CalculateClosestLegalPosition Calculates the position within the play-field that is closest to a point
CalculateDeadReckoningPosition Calculate the coordinates of the position of the player with regard to previous location, direction and speed
CalculatePosition Calculates the position of an object from the supplied intersections
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Positioner Class | TeamYaffa.CRaPI.World.Positioning Namespace