class Sp_Point

The point class It defines a point with 3 or 4 coordinates

Public Fields

[more]float x
the coordinate x
[more]float y
the coordinate y
[more]float z
the coordinate z
[more]float w
the coordinate w

Public Methods

[more]float Distance(const Sp_Point &) const
Compute the distance beetween two points
[more]int IsAheadOf(const Sp_Point &P, const Sp_Vecteur &direction) const
Is this point in front of P ?
[more]void Print() const
Print information about this point

Public

[more] The constructors
[more] operators


Documentation

The point class It defines a point with 3 or 4 coordinates
o The constructors

o Sp_Point()
the null constructor

o Sp_Point(float x1, float y1, float z1)
a 3 coordinates constructor

o Sp_Point(float x1, float y1, float z1, float w1)
a 4 coordinates costructor

o Sp_Point(const Sp_Point &)
a copy constructor

o operators

oSp_Point& operator=(const Sp_Point &)
the operator =

oSp_Point operator+(const Sp_Vecteur &) const
the + operator

oSp_Point operator-(const Sp_Vecteur &) const
the - operator

oint operator==(const Sp_Point &p) const
the == operator

ofloat Distance(const Sp_Point &) const
Compute the distance beetween two points

oint IsAheadOf(const Sp_Point &P, const Sp_Vecteur &direction) const
Is this point in front of P ?

ovoid Print() const
Print information about this point

ofloat x
the coordinate x

ofloat y
the coordinate y

ofloat z
the coordinate z

ofloat w
the coordinate w


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.