Dungeon Architect  17.0.0
DungeonArchitect.Triangulator.Geometry.Point< T > Class Template Reference

2D Point with double precision More...

Inheritance diagram for DungeonArchitect.Triangulator.Geometry.Point< T >:

Public Member Functions

 Point (double x, double y)
 Initializes a new instance of a point More...
 
bool Equals2D (Point other)
 Makes a planar checks for if the points is spatially equal to another point. More...
 
 Point (double x, double y, T attribute)
 Initializes a new instance of the point More...
 
 Point (double x, double y)
 Initializes a new instance of the point and sets the attribute to its default value More...
 

Protected Attributes

double _X
 X component of point More...
 
double _Y
 Y component of point More...
 

Properties

double X [get, set]
 Gets or sets the X component of the point More...
 
double Y [get, set]
 Gets or sets the Y component of the point More...
 
Attribute [get, set]
 Gets or sets the attribute component of the point More...
 

Detailed Description

2D Point with double precision

A point with an attribute value of type 'T'

Definition at line 6 of file PointN.cs.

Constructor & Destructor Documentation

◆ Point() [1/3]

DungeonArchitect.Triangulator.Geometry.Point< T >.Point ( double  x,
double  y 
)

Initializes a new instance of a point

Parameters
x
y

Definition at line 22 of file Point.cs.

◆ Point() [2/3]

DungeonArchitect.Triangulator.Geometry.Point< T >.Point ( double  x,
double  y,
attribute 
)

Initializes a new instance of the point

Parameters
xX component
yY component
attributeAttribute

Definition at line 15 of file PointN.cs.

◆ Point() [3/3]

DungeonArchitect.Triangulator.Geometry.Point< T >.Point ( double  x,
double  y 
)

Initializes a new instance of the point and sets the attribute to its default value

Parameters
xX component
yY component

Definition at line 25 of file PointN.cs.

Member Function Documentation

◆ Equals2D()

bool DungeonArchitect.Triangulator.Geometry.Point< T >.Equals2D ( Point< T >  other)

Makes a planar checks for if the points is spatially equal to another point.

Parameters
otherPoint to check against
Returns
True if X and Y values are the same

Definition at line 51 of file Point.cs.

Member Data Documentation

◆ _X

X component of point

Definition at line 11 of file Point.cs.

◆ _Y

Y component of point

Definition at line 15 of file Point.cs.

Property Documentation

◆ Attribute

Gets or sets the attribute component of the point

Definition at line 32 of file PointN.cs.

◆ X

Gets or sets the X component of the point

Definition at line 31 of file Point.cs.

◆ Y

Gets or sets the Y component of the point

Definition at line 40 of file Point.cs.


The documentation for this class was generated from the following files: