Script
Public Slots | Public Member Functions | Properties | List of all members
Point3d Class Reference

The Point3d class defines a three-dimensional point container. Point3d objects can be instantiated in the scripting environment. More...

#include <math.h>

Inheritance diagram for Point3d:
Inheritance graph
[legend]
Collaboration diagram for Point3d:
Collaboration graph
[legend]

Public Slots

void setXYZ (const double x, const double y, const double z)
 
bool isOrigin () const
 Test if Point3d is at origin.
 
bool isEqual (const Point3d p2) const
 Test if current Point3d is equal to specified Point3d.
 
bool isNotEqual (const Point3d p2) const
 Test if current Point3d is not equal to specified Point3d.
 
double distance (const Point3d p2) const
 Calculate distance between current Point3d and specified Point3d.
 
double distanceSq (const Point3d p2) const
 Calculate square distance between current Point3d and specified Point3d.
 
Point3dround (const double quantum)
 
Point3dinterpolate (double t, const Point3d p1, const Point3d p2)
 Calculate Point3d as interpolation between two points.
 
Point3d add (const Vector3d v)
 Add specified Vector3d to current Point3d.
 
Point3d minus (const Vector3d v)
 Substracts current Point3d with specified Vector3d.
 
Vector3d minus (const Point3d p2)
 Substracts current Point3d with specified Point3d.
 
Point3daddEq (const Vector3d v)
 Add specified Vector3d to current Point3d.
 
Point3dminusEq (const Vector3d v)
 Substract current Point3d with specified Vector3d.
 
Point2d toPoint2d ()
 Convert current Point3d to bi-dimensionnal Point2d.
 

Public Member Functions

 Point3d ()
 Create a new empty Point3d.
 
 Point3d (double x, double y, double z)
 Create a new Point3d.
 

Properties

double x
 
double y
 
double z
 

Detailed Description

The Point3d class defines a three-dimensional point container. Point3d objects can be instantiated in the scripting environment.

Constructor & Destructor Documentation

Point3d::Point3d ( )

Create a new empty Point3d.

Point3d::Point3d ( double  x,
double  y,
double  z 
)

Create a new Point3d.

Parameters
xX value
yY value
zZ value

Member Function Documentation

Point3d Point3d::add ( const Vector3d  v)
slot

Add specified Vector3d to current Point3d.

Parameters
vVector3d
Returns
New Point3d containing result
Point3d& Point3d::addEq ( const Vector3d  v)
slot

Add specified Vector3d to current Point3d.

Parameters
vVector3d
Returns
Point3d reference
double Point3d::distance ( const Point3d  p2) const
slot

Calculate distance between current Point3d and specified Point3d.

Parameters
p2Second Point3d
Returns
Distance value
double Point3d::distanceSq ( const Point3d  p2) const
slot

Calculate square distance between current Point3d and specified Point3d.

Parameters
p2Second Point3d
Returns
Square distance value
Point3d& Point3d::interpolate ( double  t,
const Point3d  p1,
const Point3d  p2 
)
slot

Calculate Point3d as interpolation between two points.

Parameters
tFactor of interpolation [ 0, 1 ]
p1First Point3d
p2Second Point3d
Returns
Point3d reference
bool Point3d::isEqual ( const Point3d  p2) const
slot

Test if current Point3d is equal to specified Point3d.

Parameters
p2Second Point3d
Returns
Result of test
bool Point3d::isNotEqual ( const Point3d  p2) const
slot

Test if current Point3d is not equal to specified Point3d.

Parameters
p2Second Point3d
Returns
Result of test
bool Point3d::isOrigin ( ) const
slot

Test if Point3d is at origin.

Returns
Result of test
Point3d Point3d::minus ( const Vector3d  v)
slot

Substracts current Point3d with specified Vector3d.

Parameters
vVector3d
Returns
New Point3d containing result
Vector3d Point3d::minus ( const Point3d  p2)
slot

Substracts current Point3d with specified Point3d.

Parameters
p2Second Point3d
Returns
New Point3d containing result
Point3d& Point3d::minusEq ( const Vector3d  v)
slot

Substract current Point3d with specified Vector3d.

Parameters
vVector3d
Returns
Point3d reference
Point3d& Point3d::round ( const double  quantum)
slot
void Point3d::setXYZ ( const double  x,
const double  y,
const double  z 
)
slot
Point2d Point3d::toPoint2d ( )
slot

Convert current Point3d to bi-dimensionnal Point2d.

Returns
new Point2d

Property Documentation

double Point3d::x
readwrite
double Point3d::y
readwrite
double Point3d::z
readwrite

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