Skip to main content

MapUnit Members

A class that contains a location in internal map units.

Constructors

Name Description
MapUnit(Double, Double) Initializes a new instance of the MapUnit class with the specified X and Y locations of the map unit.

Properties

Name Description
X A horizontal coordinate of a MapUnit.
Y A vertical coordinate of a MapUnit.

Methods

Name Description
Equals(MapUnit, MapUnit) static Determines whether the two specified MapUnit objects are equal.
Equals(MapUnit) Indicates whether the current object is equal to another object of the MapUnit type.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current MapUnit instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current MapUnit object.
GetType() Gets the Type of the current instance. Inherited from Object.
Normalize(MapUnit) static Normalizes the specified map unit’s coordinates to the range from 0 to 1.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the textual representation of MapUnit.
ToString(IFormatProvider) Returns the textual representation of MapUnit.
TryParse(String, IFormatProvider, out MapUnit) static Converts the passed string to a Map Unit object. A return value indicates whether the conversion succeeded.
See Also