OpenTD.Vector3d Class Reference
Last update: 16.07.2025A 3D vector. Note that coordinates are dimensional and reflect the current OpenTD WorkingUnits ModelLength. More...
Public Member Functions | |
| Vector3d () | |
| Initializes a new instance of the Vector3d class. | |
| Vector3d (double x, double y, double z) | |
| Initializes a new instance of the Vector3d class. | |
| Vector3d (Vector3d v) | |
| Initializes a new instance of the Vector3d class. Copy constructor. | |
| Vector3d (DimensionlessVector3d v) | |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| override string | ToString () |
| void | set (double v1, double v2, double v3) |
| double | DotProduct (Vector3d v) |
| Vector3d | CrossProduct (Vector3d vv) |
| double | Mag () |
| double | Length () |
| double | LengthSqrd () |
| void | Normalize () |
| Vector3d | Normal () |
Static Public Member Functions | |
| static bool | operator== (Vector3d first, Vector3d second) |
| static bool | operator!= (Vector3d first, Vector3d second) |
| static Vector3d | operator+ (Vector3d a, Vector3d b) |
| static Vector3d | operator- (Vector3d a, Vector3d b) |
| static Vector3d | operator- (Vector3d a) |
| static double | operator* (Vector3d a, Vector3d b) |
| static Vector3d | operator* (double s, Vector3d v) |
| static Vector3d | operator* (Vector3d v, double s) |
| static Vector3d | operator% (Vector3d u, Vector3d v) |
| static Vector3d | operator/ (Vector3d v, double s) |
Properties | |
| Dimensional< ModelLength > | X [get, set] |
| Dimensional< ModelLength > | Y [get, set] |
| Dimensional< ModelLength > | Z [get, set] |
Detailed Description
A 3D vector. Note that coordinates are dimensional and reflect the current OpenTD WorkingUnits ModelLength.
Constructor & Destructor Documentation
◆ Vector3d() [1/4]
|
inline |
Initializes a new instance of the Vector3d class.
◆ Vector3d() [2/4]
|
inline |
Initializes a new instance of the Vector3d class.
- Parameters
-
x The x coordinate. y The y coordinate. z The z coordinate.
◆ Vector3d() [3/4]
|
inline |
Initializes a new instance of the Vector3d class. Copy constructor.
◆ Vector3d() [4/4]
|
inline |
Member Function Documentation
◆ CrossProduct()
◆ DotProduct()
|
inline |
◆ Equals()
|
inline |
◆ GetHashCode()
|
inline |
◆ Length()
|
inline |
◆ LengthSqrd()
|
inline |
◆ Mag()
|
inline |
◆ Normal()
|
inline |
◆ Normalize()
|
inline |
◆ operator!=()
◆ operator%()
◆ operator*() [1/3]
◆ operator*() [2/3]
◆ operator*() [3/3]
◆ operator+()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator/()
◆ operator==()
◆ set()
|
inline |
◆ ToString()
|
inline |
Property Documentation
◆ X
|
getset |
◆ Y
|
getset |
◆ Z
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Vector3d.cs