Assembly: OpenTD.dll A mathematical point in 2D.
Inheritance
object ← Point2dInherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()Constructors
Point2d()
Initializes a new instance of the Point2d class.Point2d(Point2d)
Copy constructor.Parameters
p Point2d
The Point2d to copy from.
Point2d(double, double)
Initializes a new instance of the Point2d class.Parameters
x double
The x value.
y double
The y value.
Properties
X
Property Value
Dimensional<ModelLength>Y
Property Value
Dimensional<ModelLength>Methods
Equals(object)
Determines whether the specified object is equal to the current object.Parameters
obj object
The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.GetHashCode()
Serves as the default hash function.Returns
int A hash code for the current object.ToString()
Returns a string that represents the current object.Returns
string A string that represents the current object.Operators
operator +(Point2d, Point2d)
Parameters
firstOperand Point2d
secondOperand Point2d
Returns
Point2doperator +(Point2d, Vector3d)
Parameters
firstOperand Point2d
secondOperand Vector3d
Returns
Point2doperator ==(Point2d, Point2d)
Parameters
first Point2d
second Point2d
Returns
booloperator !=(Point2d, Point2d)
Parameters
first Point2d
second Point2d
Returns
booloperator -(Point2d, Point2d)
Parameters
a Point2d
b Point2d