In file graphics3D/Plane.h:

namespace yav class Plane

a geometric plane

Inheritance:


Public Methods

const double* getEquation (void) const
returns plane equation
Vec3 getPoint (void) const
returns a point belonging to the plane
Vec3 getPoint (const Vec3 &P) const
returns plane point closest to P
Vec3 getNormal (void) const
returns plane normal
virtual void setEquation (const double *eqn)
set new plane equation to: eqn[0] x + eqn[1] y + eqn[2] z + eqn[3] = 0
virtual void setEquation (const Vec3& P, const Vec3& n)
set new plane equation for plane passing through P with normal n
virtual void translate (const Vec3& t)
translates plane in space
virtual void rotate (const Rotation3D& r)
rotates plane in space
virtual void rotate (const Rotation3D& r, const Vec3& P)
rotates plane in space around one point

Public

destructor
Plane ()
construct a new plane passing through (0, 0, 0) and orthogonal to (0, 0, 1)
Plane (const double *equation)
construct a new plane with equation equation[0] x + equation[1] y + equation[2] z + equation[3] = 0
Plane (const Vec3& P, const Vec3& n)
construct a new plane with passing through P and orthogonal to n
constructors

Protected Fields

double equation [4]
plane equation is equation[0] x + equation[1] y + equation[2] z + equation[3] = 0

Documentation

a geometric plane
double equation[4]
plane equation is equation[0] x + equation[1] y + equation[2] z + equation[3] = 0

destructor

Plane()
construct a new plane passing through (0, 0, 0) and orthogonal to (0, 0, 1)

Plane(const double *equation)
construct a new plane with equation equation[0] x + equation[1] y + equation[2] z + equation[3] = 0
Parameters:
equation - four plane equation coefficients

Plane(const Vec3& P, const Vec3& n)
construct a new plane with passing through P and orthogonal to n
Parameters:
P - one plane point
n - plane normal

constructors

const double* getEquation(void) const
returns plane equation

Vec3 getPoint(void) const
returns a point belonging to the plane

Vec3 getPoint(const Vec3 &P) const
returns plane point closest to P
Parameters:
P - space point

Vec3 getNormal(void) const
returns plane normal

virtual void setEquation(const double *eqn)
set new plane equation to: eqn[0] x + eqn[1] y + eqn[2] z + eqn[3] = 0
Parameters:
eqn - plane equation

virtual void setEquation(const Vec3& P, const Vec3& n)
set new plane equation for plane passing through P with normal n
Parameters:
P - one plane point
n - plane normal

virtual void translate(const Vec3& t)
translates plane in space
Parameters:
t - translation vector

virtual void rotate(const Rotation3D& r)
rotates plane in space
Parameters:
r - rotation matrix

virtual void rotate(const Rotation3D& r, const Vec3& P)
rotates plane in space around one point
Parameters:
r - rotation matrix
P - rotation center


Direct child classes:
ClippingPlane

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de