eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.E3DPoint Class Reference

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

Public Member Functions

None __init__ (self)
 Constructs a default eVision.Easy3D.E3DPoint object.
None __init__ (self, float x, float y, float z)
 Constructs a default eVision.Easy3D.E3DPoint object.
None __init__ (self, float X)
None __init__ (self, float X, float Y)
None __init__ (self, eVision.Easy3D.E3DPoint other)
float SquareDistanceTo (self, eVision.Easy3D.E3DPoint point)
 Returns the euclidean squared distance to another eVision.Easy3D.E3DPoint.
float DistanceTo (self, eVision.Easy3D.E3DPoint point)
 Returns the euclidean distance to another eVision.Easy3D.E3DPoint.
float DistanceToSegment (self, eVision.Easy3D.E3DPoint from_, eVision.Easy3D.E3DPoint to)
 Returns the euclidean distance between the eVision.Easy3D.E3DPoint and a segment represented by 2 other eVision.Easy3D.E3DPoint.
None Save (self, str fileName)
 Saves the eVision.Easy3D.E3DPoint.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.Easy3D.E3DPoint.
None Load (self, str fileName)
 Loads the eVision.Easy3D.E3DPoint.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.Easy3D.E3DPoint.
float X (self)
 X coordinate of the point.
 X (self, float value)
 X coordinate of the point.
float Y (self)
 Y coordinate of the point.
 Y (self, float value)
 Y coordinate of the point.
float Z (self)
 Z coordinate of the point.
 Z (self, float value)
 Z coordinate of the point.

Detailed Description

Represents a 3D point with floating point coordinates.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/5]

None eVision.Easy3D.E3DPoint.__init__ ( self)

Constructs a default eVision.Easy3D.E3DPoint object.

Remarks:

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

◆ __init__() [2/5]

None eVision.Easy3D.E3DPoint.__init__ ( self,
float x,
float y,
float z )

Constructs a default eVision.Easy3D.E3DPoint object.

Remarks:

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

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

◆ __init__() [3/5]

None eVision.Easy3D.E3DPoint.__init__ ( self,
float X )
Parameters
XX coordinate of the point.

◆ __init__() [4/5]

None eVision.Easy3D.E3DPoint.__init__ ( self,
float X,
float Y )
Parameters
XX coordinate of the point.
YY coordinate of the point.

◆ __init__() [5/5]

None eVision.Easy3D.E3DPoint.__init__ ( self,
eVision.Easy3D.E3DPoint other )
Parameters
otherOther instance

Member Function Documentation

◆ DistanceTo()

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

Returns the euclidean distance to another eVision.Easy3D.E3DPoint.

Parameters
pointThe other point.

◆ DistanceToSegment()

float eVision.Easy3D.E3DPoint.DistanceToSegment ( self,
eVision.Easy3D.E3DPoint from_,
eVision.Easy3D.E3DPoint to )

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

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

◆ Load() [1/2]

None eVision.Easy3D.E3DPoint.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.Easy3D.E3DPoint.

Parameters
serializerSerializer. Must be in read mode.

◆ Load() [2/2]

None eVision.Easy3D.E3DPoint.Load ( self,
str fileName )

Loads the eVision.Easy3D.E3DPoint.

Parameters
fileNamePath to the file.

◆ Save() [1/2]

None eVision.Easy3D.E3DPoint.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.Easy3D.E3DPoint.

Parameters
serializerSerializer. Must be in write mode.

◆ Save() [2/2]

None eVision.Easy3D.E3DPoint.Save ( self,
str fileName )

Saves the eVision.Easy3D.E3DPoint.

Parameters
fileNamePath to the file.

◆ SquareDistanceTo()

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

Returns the euclidean squared distance to another eVision.Easy3D.E3DPoint.

Parameters
pointThe other point.

◆ X() [1/2]

float eVision.Easy3D.E3DPoint.X ( self)

X coordinate of the point.

◆ X() [2/2]

eVision.Easy3D.E3DPoint.X ( self,
float value )

X coordinate of the point.

◆ Y() [1/2]

float eVision.Easy3D.E3DPoint.Y ( self)

Y coordinate of the point.

◆ Y() [2/2]

eVision.Easy3D.E3DPoint.Y ( self,
float value )

Y coordinate of the point.

◆ Z() [1/2]

float eVision.Easy3D.E3DPoint.Z ( self)

Z coordinate of the point.

◆ Z() [2/2]

eVision.Easy3D.E3DPoint.Z ( self,
float value )

Z coordinate of the point.