A geometric plane, modelled as a normal vector and a distance to the plane.
More...
#include <Plane.h>
|
| Plane () |
| Default constructor, performs no intializations.
|
|
| Plane (double a, double b, double c, double d) |
| Constructor that initializes the plane based on coefficients of the plane equation, ax + by + cz + d = 0.
|
|
| Plane (Vector3 pNormal, double pDistance) |
| Constructor that initializes the plane based on a normal vector and a distance to the plane, which is how the plane is represented internally.
|
|
const Vector3 &SILVERLINING_API | GetNormal () const |
| Retrieves the normal vector for the plane.
|
|
double SILVERLINING_API | GetDistance () const |
| Retrieves the distance to the plane.
|
|
void SILVERLINING_API | SetNormal (const Vector3 &v) |
| Set the normal vector for the plane.
|
|
void SILVERLINING_API | SetDistance (double d) |
| Set the distance to the plane.
|
|
void SILVERLINING_API | Normalize () |
| Normalizes the plane normal vector and adjusts the distance accordingly.
|
|
A geometric plane, modelled as a normal vector and a distance to the plane.
◆ Plane() [1/2]
SilverLining::Plane::Plane |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c, |
|
|
double |
d |
|
) |
| |
|
inline |
Constructor that initializes the plane based on coefficients of the plane equation, ax + by + cz + d = 0.
◆ Plane() [2/2]
SilverLining::Plane::Plane |
( |
Vector3 |
pNormal, |
|
|
double |
pDistance |
|
) |
| |
|
inline |
Constructor that initializes the plane based on a normal vector and a distance to the plane, which is how the plane is represented internally.
◆ GetDistance()
double SILVERLINING_API SilverLining::Plane::GetDistance |
( |
| ) |
const |
|
inline |
Retrieves the distance to the plane.
◆ GetNormal()
const Vector3 &SILVERLINING_API SilverLining::Plane::GetNormal |
( |
| ) |
const |
|
inline |
Retrieves the normal vector for the plane.
◆ Normalize()
void SILVERLINING_API SilverLining::Plane::Normalize |
( |
| ) |
|
|
inline |
Normalizes the plane normal vector and adjusts the distance accordingly.
◆ SetDistance()
void SILVERLINING_API SilverLining::Plane::SetDistance |
( |
double |
d | ) |
|
|
inline |
Set the distance to the plane.
◆ SetNormal()
void SILVERLINING_API SilverLining::Plane::SetNormal |
( |
const Vector3 & |
v | ) |
|
|
inline |
Set the normal vector for the plane.
The documentation for this class was generated from the following file: