Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Point2d Class Reference

Last update: 16.07.2025

A 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< ModelLengthX [get, set]
 
Dimensional< ModelLengthY [get, set]
 

Detailed Description

A mathematical point in 2D.

Constructor & Destructor Documentation

◆ Point2d() [1/3]

OpenTD.Point2d.Point2d ( )
inline

Initializes a new instance of the Point2d class.

◆ Point2d() [2/3]

OpenTD.Point2d.Point2d ( Point2d p)
inline

Copy constructor.

Parameters
pThe Point2d to copy from.

◆ Point2d() [3/3]

OpenTD.Point2d.Point2d ( double x,
double y )
inline

Initializes a new instance of the Point2d class.

Parameters
xThe x value.
yThe y value.

Member Function Documentation

◆ Equals()

override bool OpenTD.Point2d.Equals ( object obj)
inline

◆ GetHashCode()

override int OpenTD.Point2d.GetHashCode ( )
inline

◆ operator!=()

static bool OpenTD.Point2d.operator!= ( Point2d first,
Point2d second )
inlinestatic

◆ operator+() [1/2]

static Point2d OpenTD.Point2d.operator+ ( Point2d firstOperand,
Point2d secondOperand )
inlinestatic

◆ operator+() [2/2]

static Point2d OpenTD.Point2d.operator+ ( Point2d firstOperand,
Vector3d secondOperand )
inlinestatic

◆ operator-()

static Vector3d OpenTD.Point2d.operator- ( Point2d a,
Point2d b )
inlinestatic

◆ operator==()

static bool OpenTD.Point2d.operator== ( Point2d first,
Point2d second )
inlinestatic

◆ ToString()

override string OpenTD.Point2d.ToString ( )
inline

Property Documentation

◆ X

Dimensional<ModelLength> OpenTD.Point2d.X
getset

◆ Y

Dimensional<ModelLength> OpenTD.Point2d.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

Connect with Ansys