Class Point3d
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
A mathematical point in 3D.
[DataContract]
public class Point3d
Inheritance
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
Point3d()
Initializes a new instance of the
public Point3d()
Point3d(Point3d)
Copy constructor.
public Point3d(Point3d p)
Parameters
p Point3d
The Point3d to copy from.
Point3d(double, double, double)
Initializes a new instance of the
public Point3d(double x, double y, double z)
Parameters
x double
The x value.
y double
The y value.
z double
The z value.
Properties
X
[DataMember]
public Dimensional<ModelLength> X { get; set; }
Property Value
Y
[DataMember]
public Dimensional<ModelLength> Y { get; set; }
Property Value
Z
[DataMember]
public Dimensional<ModelLength> Z { get; set; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj object
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
operator +(Point3d, Point3d)
public static Point3d operator +(Point3d firstOperand, Point3d secondOperand)
Parameters
firstOperand Point3d
secondOperand Point3d
Returns
operator +(Point3d, Vector3d)
public static Point3d operator +(Point3d firstOperand, Vector3d secondOperand)
Parameters
firstOperand Point3d
secondOperand Vector3d
Returns
operator ==(Point3d, Point3d)
public static bool operator ==(Point3d first, Point3d second)
Parameters
first Point3d
second Point3d
Returns
operator !=(Point3d, Point3d)
public static bool operator !=(Point3d first, Point3d second)
Parameters
first Point3d
second Point3d
Returns
operator -(Point3d, Point3d)
public static Vector3d operator -(Point3d a, Point3d b)
Parameters
a Point3d
b Point3d