eVision .NET API
Loading...
Searching...
No Matches
eVision.Easy3D.E3DSphere Class Reference

Represents a 3D sphere. More...

Inheritance diagram for eVision.Easy3D.E3DSphere:
Collaboration diagram for eVision.Easy3D.E3DSphere:

Public Member Functions

 E3DSphere ()
 Creates an E3DSphere object.
 E3DSphere (eVision.Easy3D.E3DPoint center, float radius)
 Creates an E3DSphere object.
 E3DSphere (eVision.Easy3D.E3DPoint point1, eVision.Easy3D.E3DPoint point2, eVision.Easy3D.E3DPoint point3, eVision.Easy3D.E3DPoint point4)
 Creates an E3DSphere object.
 E3DSphere (eVision.Easy3D.E3DSphere other)
 Creates an E3DSphere object.
void Define (eVision.Easy3D.E3DPoint center, float radius)
 (re)Defines the sphere parameters:
void Define (eVision.Easy3D.E3DPoint point1, eVision.Easy3D.E3DPoint point2, eVision.Easy3D.E3DPoint point3, eVision.Easy3D.E3DPoint point4)
 (re)Defines the sphere parameters:
float DistanceTo (eVision.Easy3D.E3DPoint point)
 Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere.
eVision.Easy3D.E3DSphere Transform (eVision.Easy3D.E3DTransformMatrix matrix)
 Transforms the 3D sphere with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an isotropic scaling transform.
void Load (string path)
 Loads a E3DSphere. The given ESerializer must have been created for reading.
void Load (eVision.ESerializer serializer)
 Loads a E3DSphere. The given ESerializer must have been created for reading.
void Save (string path)
 Saves a E3DSphere. The given ESerializer must have been created for writing.
void Save (eVision.ESerializer serializer)
 Saves a E3DSphere. The given ESerializer must have been created for writing.

Properties

eVision.Easy3D.E3DPoint Center [get]
 Gets the center point of the sphere.
float Radius [get]
 Gets the radius of the sphere.

Detailed Description

Represents a 3D sphere.

License(s): Easy3D

Constructor & Destructor Documentation

◆ E3DSphere() [1/4]

eVision.Easy3D.E3DSphere.E3DSphere ( )

Creates an E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

◆ E3DSphere() [2/4]

eVision.Easy3D.E3DSphere.E3DSphere ( eVision.Easy3D.E3DPoint center,
float radius )

Creates an E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ E3DSphere() [3/4]

eVision.Easy3D.E3DSphere.E3DSphere ( eVision.Easy3D.E3DPoint point1,
eVision.Easy3D.E3DPoint point2,
eVision.Easy3D.E3DPoint point3,
eVision.Easy3D.E3DPoint point4 )

Creates an E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ E3DSphere() [4/4]

eVision.Easy3D.E3DSphere.E3DSphere ( eVision.Easy3D.E3DSphere other)

Creates an E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
otherThe other E3DSphere that we will copy into this one.

Member Function Documentation

◆ Define() [1/2]

void eVision.Easy3D.E3DSphere.Define ( eVision.Easy3D.E3DPoint center,
float radius )

(re)Defines the sphere parameters:

It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ Define() [2/2]

void eVision.Easy3D.E3DSphere.Define ( eVision.Easy3D.E3DPoint point1,
eVision.Easy3D.E3DPoint point2,
eVision.Easy3D.E3DPoint point3,
eVision.Easy3D.E3DPoint point4 )

(re)Defines the sphere parameters:

It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ DistanceTo()

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

Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere.

Parameters
pointThe 3D point to measure the distance to.

◆ Load() [1/2]

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

Loads a E3DSphere. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

void eVision.Easy3D.E3DSphere.Load ( string path)

Loads a E3DSphere. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Save() [1/2]

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

Saves a E3DSphere. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

◆ Save() [2/2]

void eVision.Easy3D.E3DSphere.Save ( string path)

Saves a E3DSphere. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Transform()

eVision.Easy3D.E3DSphere eVision.Easy3D.E3DSphere.Transform ( eVision.Easy3D.E3DTransformMatrix matrix)

Transforms the 3D sphere with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an isotropic scaling transform.

Parameters
matrixThe 3D transformation matrix.

Property Documentation

◆ Center

eVision.Easy3D.E3DPoint eVision.Easy3D.E3DSphere.Center
get

Gets the center point of the sphere.

◆ Radius

float eVision.Easy3D.E3DSphere.Radius
get

Gets the radius of the sphere.