eVision .NET API
Loading...
Searching...
No Matches
eVision.Easy3D.E3DPoint Struct Reference

Represents a 3D point with floating point coordinates. More...

Public Member Functions

 E3DPoint (float x, float y, float z)
 Constructs a default E3DPoint object.
float SquareDistanceTo (eVision.Easy3D.E3DPoint point)
 Returns the euclidean squared distance to another E3DPoint.
float DistanceTo (eVision.Easy3D.E3DPoint point)
 Returns the euclidean distance to another E3DPoint.
float DistanceToSegment (eVision.Easy3D.E3DPoint from, eVision.Easy3D.E3DPoint to)
 Returns the euclidean distance between the E3DPoint and a segment represented by 2 other E3DPoint.
void Save (string fileName)
 Saves the E3DPoint.
void Save (eVision.ESerializer serializer)
 Saves the E3DPoint.
void Load (string fileName)
 Loads the E3DPoint.
void Load (eVision.ESerializer serializer)
 Loads the E3DPoint.

Static Public Member Functions

static bool operator== (eVision.Easy3D.E3DPoint extraArgument, eVision.Easy3D.E3DPoint point)
 Checks if two E3DPoint are strictly equal.
static bool operator!= (eVision.Easy3D.E3DPoint extraArgument, eVision.Easy3D.E3DPoint point)
 Checks if two E3DPoint are strictly different.

Public Attributes

float X
 X coordinate of the point.
float Y
 Y coordinate of the point.
float Z
 Z coordinate of the point.

Detailed Description

Represents a 3D point with floating point coordinates.

License(s): Easy3D

Constructor & Destructor Documentation

◆ E3DPoint()

eVision.Easy3D.E3DPoint.E3DPoint ( float x,
float y,
float z )

Constructs a default E3DPoint object.

Parameters
xX coordinate of the point.
yY coordinate of the point.
zZ coordinate of the point.

If the default constructor is used, the point is initialized to (0, 0, 0).

Member Function Documentation

◆ DistanceTo()

float eVision.Easy3D.E3DPoint.DistanceTo ( eVision.Easy3D.E3DPoint point)

Returns the euclidean distance to another E3DPoint.

Parameters
pointThe other point.

◆ DistanceToSegment()

float eVision.Easy3D.E3DPoint.DistanceToSegment ( eVision.Easy3D.E3DPoint from,
eVision.Easy3D.E3DPoint to )

Returns the euclidean distance between the E3DPoint and a segment represented by 2 other E3DPoint.

Parameters
fromOne end point of the segment
toThe other end point of the segment

◆ Load() [1/2]

void eVision.Easy3D.E3DPoint.Load ( eVision.ESerializer serializer)

Loads the E3DPoint.

Parameters
serializerSerializer. Must be in read mode.

◆ Load() [2/2]

void eVision.Easy3D.E3DPoint.Load ( string fileName)

Loads the E3DPoint.

Parameters
fileNamePath to the file.

◆ operator!=()

bool eVision.Easy3D.E3DPoint.operator!= ( eVision.Easy3D.E3DPoint extraArgument,
eVision.Easy3D.E3DPoint point )
static

Checks if two E3DPoint are strictly different.

Parameters
pointThe other point.

◆ operator==()

bool eVision.Easy3D.E3DPoint.operator== ( eVision.Easy3D.E3DPoint extraArgument,
eVision.Easy3D.E3DPoint point )
static

Checks if two E3DPoint are strictly equal.

Parameters
pointThe other point.

◆ Save() [1/2]

void eVision.Easy3D.E3DPoint.Save ( eVision.ESerializer serializer)

Saves the E3DPoint.

Parameters
serializerSerializer. Must be in write mode.

◆ Save() [2/2]

void eVision.Easy3D.E3DPoint.Save ( string fileName)

Saves the E3DPoint.

Parameters
fileNamePath to the file.

◆ SquareDistanceTo()

float eVision.Easy3D.E3DPoint.SquareDistanceTo ( eVision.Easy3D.E3DPoint point)

Returns the euclidean squared distance to another E3DPoint.

Parameters
pointThe other point.

Member Data Documentation

◆ X

float eVision.Easy3D.E3DPoint.X

X coordinate of the point.

◆ Y

float eVision.Easy3D.E3DPoint.Y

Y coordinate of the point.

◆ Z

float eVision.Easy3D.E3DPoint.Z

Z coordinate of the point.