Skip to main content

OpenTD reference 2026 R1

Class Point3d

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

A mathematical point in 3D.

[MessagePackObject(true)]
public class Point3d

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 class.

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 class.

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

public Dimensional<ModelLength> X { get; set; }

Property Value

Dimensional<ModelLength>

Y

public Dimensional<ModelLength> Y { get; set; }

Property Value

Dimensional<ModelLength>

Z

public Dimensional<ModelLength> Z { get; set; }

Property Value

Dimensional<ModelLength>

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

bool

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

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

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

Point3d

operator +(Point3d, Vector3d)

public static Point3d operator +(Point3d firstOperand, Vector3d secondOperand)

Parameters

firstOperand Point3d

secondOperand Vector3d

Returns

Point3d

operator ==(Point3d, Point3d)

public static bool operator ==(Point3d first, Point3d second)

Parameters

first Point3d

second Point3d

Returns

bool

operator !=(Point3d, Point3d)

public static bool operator !=(Point3d first, Point3d second)

Parameters

first Point3d

second Point3d

Returns

bool

operator -(Point3d, Point3d)

public static Vector3d operator -(Point3d a, Point3d b)

Parameters

a Point3d

b Point3d

Returns

Vector3d

Connect with Ansys