    

 ## On this page

  

 

 # OpenTD.Point2d Class Reference

 Last update: 16.07.2025 

A mathematical point in 2D. [More...](#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [Point2d](#a1ac673a2a7b84f121f30d694ba8f8c27) () Initializes a new instance of the [Point2d](class_open_t_d_1_1_point2d.xhtml "A mathematical point in 2D.") class.   
  [Point2d](#a5077b527aa18cf52e1c83e64ac5b3958) ([Point2d](class_open_t_d_1_1_point2d.xhtml) p) Copy constructor.   
  [Point2d](#a2055045e396399ba45e9e8a293b9bc80) (double x, double y) Initializes a new instance of the [Point2d](class_open_t_d_1_1_point2d.xhtml "A mathematical point in 2D.") class.   
 override bool [Equals](#a434924aece28de4e74fe6511c75950fd) (object obj) override int [GetHashCode](#afe5eb1390dae641dae6335108680a33e) () override string [ToString](#a057d65111ce40eb340f8ce41c6d2be20) () ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static bool [operator==](#ad20f0a1efa572129626248d034907d1d) ([Point2d](class_open_t_d_1_1_point2d.xhtml) first, [Point2d](class_open_t_d_1_1_point2d.xhtml) second) static bool [operator!=](#acc85181a038f67bc6f32c03442205bfe) ([Point2d](class_open_t_d_1_1_point2d.xhtml) first, [Point2d](class_open_t_d_1_1_point2d.xhtml) second) static [Point2d](class_open_t_d_1_1_point2d.xhtml) [operator+](#a49936a755b0fef22627d24213a9c9242) ([Point2d](class_open_t_d_1_1_point2d.xhtml) firstOperand, [Point2d](class_open_t_d_1_1_point2d.xhtml) secondOperand) static [Point2d](class_open_t_d_1_1_point2d.xhtml) [operator+](#ad8bfe4fec39c7af169addbc901bc6928) ([Point2d](class_open_t_d_1_1_point2d.xhtml) firstOperand, [Vector3d](class_open_t_d_1_1_vector3d.xhtml) secondOperand) static [Vector3d](class_open_t_d_1_1_vector3d.xhtml) [operator-](#adcdecda2fded72ddbe8cc933841ec190) ([Point2d](class_open_t_d_1_1_point2d.xhtml) a, [Point2d](class_open_t_d_1_1_point2d.xhtml) b) ## <a id="properties" name="properties"></a>Properties

Dimensional&lt; [ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml) &gt; [X](#a765339c9ecf463fb216ce7ed13ef8f3c)` [get, set]` Dimensional&lt; [ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml) &gt; [Y](#ae7bdbabbb9e95044ef3acffde22f7312)` [get, set]` <a id="details" name="details"></a>## Detailed Description

A mathematical point in 2D.



## Constructor &amp; Destructor Documentation

<a id="a1ac673a2a7b84f121f30d694ba8f8c27" name="a1ac673a2a7b84f121f30d694ba8f8c27"></a>## [◆ ](#a1ac673a2a7b84f121f30d694ba8f8c27)Point2d() \[1/3\]

 OpenTD.Point2d.Point2d  ( )   inline 

Initializes a new instance of the [Point2d](class_open_t_d_1_1_point2d.xhtml "A mathematical point in 2D.") class.





<a id="a5077b527aa18cf52e1c83e64ac5b3958" name="a5077b527aa18cf52e1c83e64ac5b3958"></a>## [◆ ](#a5077b527aa18cf52e1c83e64ac5b3958)Point2d() \[2/3\]

 OpenTD.Point2d.Point2d  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *p*)   inline 

Copy constructor.

Parameters pThe [Point2d](class_open_t_d_1_1_point2d.xhtml "A mathematical point in 2D.") to copy from.



<a id="a2055045e396399ba45e9e8a293b9bc80" name="a2055045e396399ba45e9e8a293b9bc80"></a>## [◆ ](#a2055045e396399ba45e9e8a293b9bc80)Point2d() \[3/3\]

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

Initializes a new instance of the [Point2d](class_open_t_d_1_1_point2d.xhtml "A mathematical point in 2D.") class.

Parameters xThe x value.yThe y value.



## Member Function Documentation

<a id="a434924aece28de4e74fe6511c75950fd" name="a434924aece28de4e74fe6511c75950fd"></a>## [◆ ](#a434924aece28de4e74fe6511c75950fd)Equals()

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





<a id="afe5eb1390dae641dae6335108680a33e" name="afe5eb1390dae641dae6335108680a33e"></a>## [◆ ](#afe5eb1390dae641dae6335108680a33e)GetHashCode()

 override int OpenTD.Point2d.GetHashCode  ( )   inline 





<a id="acc85181a038f67bc6f32c03442205bfe" name="acc85181a038f67bc6f32c03442205bfe"></a>## [◆ ](#acc85181a038f67bc6f32c03442205bfe)operator!=()

 static bool OpenTD.Point2d.operator!=  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *first*,    [Point2d](class_open_t_d_1_1_point2d.xhtml) *second* )  inlinestatic 





<a id="a49936a755b0fef22627d24213a9c9242" name="a49936a755b0fef22627d24213a9c9242"></a>## [◆ ](#a49936a755b0fef22627d24213a9c9242)operator+() \[1/2\]

 static [Point2d](class_open_t_d_1_1_point2d.xhtml) OpenTD.Point2d.operator+  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *firstOperand*,    [Point2d](class_open_t_d_1_1_point2d.xhtml) *secondOperand* )  inlinestatic 





<a id="ad8bfe4fec39c7af169addbc901bc6928" name="ad8bfe4fec39c7af169addbc901bc6928"></a>## [◆ ](#ad8bfe4fec39c7af169addbc901bc6928)operator+() \[2/2\]

 static [Point2d](class_open_t_d_1_1_point2d.xhtml) OpenTD.Point2d.operator+  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *firstOperand*,    [Vector3d](class_open_t_d_1_1_vector3d.xhtml) *secondOperand* )  inlinestatic 





<a id="adcdecda2fded72ddbe8cc933841ec190" name="adcdecda2fded72ddbe8cc933841ec190"></a>## [◆ ](#adcdecda2fded72ddbe8cc933841ec190)operator-()

 static [Vector3d](class_open_t_d_1_1_vector3d.xhtml) OpenTD.Point2d.operator-  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *a*,    [Point2d](class_open_t_d_1_1_point2d.xhtml) *b* )  inlinestatic 





<a id="ad20f0a1efa572129626248d034907d1d" name="ad20f0a1efa572129626248d034907d1d"></a>## [◆ ](#ad20f0a1efa572129626248d034907d1d)operator==()

 static bool OpenTD.Point2d.operator==  ( [Point2d](class_open_t_d_1_1_point2d.xhtml) *first*,    [Point2d](class_open_t_d_1_1_point2d.xhtml) *second* )  inlinestatic 





<a id="a057d65111ce40eb340f8ce41c6d2be20" name="a057d65111ce40eb340f8ce41c6d2be20"></a>## [◆ ](#a057d65111ce40eb340f8ce41c6d2be20)ToString()

 override string OpenTD.Point2d.ToString  ( )   inline 





## Property Documentation

<a id="a765339c9ecf463fb216ce7ed13ef8f3c" name="a765339c9ecf463fb216ce7ed13ef8f3c"></a>## [◆ ](#a765339c9ecf463fb216ce7ed13ef8f3c)X

 Dimensional&lt;[ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml)&gt; OpenTD.Point2d.X  getset 





<a id="ae7bdbabbb9e95044ef3acffde22f7312" name="ae7bdbabbb9e95044ef3acffde22f7312"></a>## [◆ ](#ae7bdbabbb9e95044ef3acffde22f7312)Y

 Dimensional&lt;[ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml)&gt; 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**