class Sp_Vecteur

The vector class It defines vector 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]void Norme()
make the norme of vector equal to 1
[more]float Compute_norme() const
compute the norme of a vector
[more]int IsNull() const
Is this vector Null
[more]void Print() const
print information about this vecteur

Public

[more] The constructors
[more] Operators


Documentation

The vector class It defines vector with 3 or 4 coordinates
o The constructors

o Sp_Vecteur()
the null constructor

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

o Sp_Vecteur(float x1, float y1, float z1, float w1)
a 4 corrdinates costructor

o Sp_Vecteur(const Sp_Vecteur &)
the copy constructor

o Operators

oSp_Vecteur& operator=(const Sp_Vecteur &)
the operator =

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

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

oSp_Vecteur operator+() const
the plus operator

oSp_Vecteur operator-() const
the minus operator

ofloat operator*(const Sp_Vecteur &) const
the dot product

oSp_Vecteur operator*(const float &a) const
we * the coordinates by a

oSp_Vecteur operator^(const Sp_Vecteur &) const
the cross product apply only the coordinates x,y,z

ovoid Norme()
make the norme of vector equal to 1

ofloat Compute_norme() const
compute the norme of a vector

oint IsNull() const
Is this vector Null

ovoid Print() const
print information about this vecteur

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++.