Skip to main content
Namespace: OpenTD
Assembly: OpenTD.dll
A mathematical point in 3D.

Inheritance

object ← Point3d

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Point3d()

Initializes a new instance of the Point3d class.

Point3d(Point3d)

Copy constructor.

Parameters

p Point3d The Point3d to copy from.

Point3d(double, double, double)

Initializes a new instance of the Point3d class.

Parameters

x double The x value. y double The y value. z double The z value.

Properties

X

Property Value

Dimensional<ModelLength>

Y

Property Value

Dimensional<ModelLength>

Z

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 +(Point3d, Point3d)

Parameters

firstOperand Point3d secondOperand Point3d

Returns

Point3d

operator +(Point3d, Vector3d)

Parameters

firstOperand Point3d secondOperand Vector3d

Returns

Point3d

operator ==(Point3d, Point3d)

Parameters

first Point3d second Point3d

Returns

bool

operator !=(Point3d, Point3d)

Parameters

first Point3d second Point3d

Returns

bool

operator -(Point3d, Point3d)

Parameters

a Point3d b Point3d

Returns

Vector3d