OpenTD.Point2d Class Reference
Last update: 16.07.2025A mathematical point in 2D. More...
Public Member Functions | |
| Point2d () | |
| Initializes a new instance of the Point2d class. | |
| Point2d (Point2d p) | |
| Copy constructor. | |
| Point2d (double x, double y) | |
| Initializes a new instance of the Point2d class. | |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| override string | ToString () |
Static Public Member Functions | |
| static bool | operator== (Point2d first, Point2d second) |
| static bool | operator!= (Point2d first, Point2d second) |
| static Point2d | operator+ (Point2d firstOperand, Point2d secondOperand) |
| static Point2d | operator+ (Point2d firstOperand, Vector3d secondOperand) |
| static Vector3d | operator- (Point2d a, Point2d b) |
Properties | |
| Dimensional< ModelLength > | X [get, set] |
| Dimensional< ModelLength > | Y [get, set] |
Detailed Description
A mathematical point in 2D.
Constructor & Destructor Documentation
◆ Point2d() [1/3]
|
inline |
Initializes a new instance of the Point2d class.
◆ Point2d() [2/3]
◆ Point2d() [3/3]
|
inline |
Initializes a new instance of the Point2d class.
- Parameters
-
x The x value. y The y value.
Member Function Documentation
◆ Equals()
|
inline |
◆ GetHashCode()
|
inline |
◆ operator!=()
◆ operator+() [1/2]
|
inlinestatic |
◆ operator+() [2/2]
|
inlinestatic |
◆ operator-()
◆ operator==()
◆ ToString()
|
inline |
Property Documentation
◆ X
|
getset |
◆ Y
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Point2d.cs