Open Rails

WorldPosition Members

WorldPosition overview

Public Instance Constructors

WorldPosition Overloaded. Initializes a new instance of the WorldPosition class.

Public Instance Fields

XNAMatrixThe position within a tile (relative to the center of tile)

Public Instance Properties

Location Describes the location as 3D vector in MSTS coordinates within the tile
TileXThe x-value of the tile
TileZThe z-value of the tile
WorldLocation The world-location in MSTS coordinates of the current position

Public Instance Methods

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.
GetType (inherited from Object)Gets the Type of the current instance.
Normalize Ensure tile coordinates are within tile boundaries
NormalizeTo Change tile and location values to make it as if the location where on the requested tile.
ToString Create a nice string-representation of the world position

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

WorldPosition Class | ORTS.Common Namespace