TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
Plane Class Referencefinal

Plane entity, this is not directly connectable with physics engine. More...

#include <tdme/engine/primitives/Plane.h>

Collaboration diagram for Plane:
Collaboration graph

Public Member Functions

 Plane ()
 Public constructor. More...
 
 Plane (const Vector3 &normal, float distance)
 Public constructor. More...
 
float getDistance () const
 
void setDistance (float distance)
 Set up distance from origin. More...
 
const Vector3getNormal () const
 
void setNormal (const Vector3 &normal)
 
float computeDistance (const Vector3 &point) const
 Compute distance from plane. More...
 

Private Attributes

Vector3 normal
 
float distance
 

Detailed Description

Plane entity, this is not directly connectable with physics engine.

Author
Andreas Drewke
Version
$Id$

Definition at line 15 of file Plane.h.

Constructor & Destructor Documentation

◆ Plane() [1/2]

Plane ( )
inline

Public constructor.

Definition at line 25 of file Plane.h.

◆ Plane() [2/2]

Plane ( const Vector3 normal,
float  distance 
)
inline

Public constructor.

Parameters
normalnormal
distancedistance

Definition at line 35 of file Plane.h.

Member Function Documentation

◆ computeDistance()

float computeDistance ( const Vector3 point) const
inline

Compute distance from plane.

Parameters
pointpoint
Returns
distance

Definition at line 74 of file Plane.h.

◆ getDistance()

float getDistance ( ) const
inline
Returns
float distance from origin

Definition at line 43 of file Plane.h.

◆ getNormal()

const Vector3 & getNormal ( ) const
inline
Returns
normal

Definition at line 58 of file Plane.h.

◆ setDistance()

void setDistance ( float  distance)
inline

Set up distance from origin.

Parameters
distancedistance

Definition at line 51 of file Plane.h.

◆ setNormal()

void setNormal ( const Vector3 normal)
inline
Returns
normal

Definition at line 65 of file Plane.h.

Member Data Documentation

◆ distance

float distance
private

Definition at line 19 of file Plane.h.

◆ normal

Vector3 normal
private

Definition at line 18 of file Plane.h.


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