Fovia's C++ Client/Server API
Public Member Functions | Public Attributes | List of all members
PLANEEQF Struct Reference

Public Member Functions

VECTOR3D getNormal ()
 
PLANEEQFoperator= (const PLANEEQF &r)
 
 PLANEEQF (const PLANEEQF &r)
 

Public Attributes

float a
 
float b
 
float c
 
float d
 

Detailed Description

The plane equation is defined by the coefficients a, b, c, and d. These coefficients are the standard plane equation coefficients such that:

$ ax + by + cz + d = 0 $

The normalized $ \left| a b c \right| $ coefficients define the normal vector to the plane. Coefficient $ d $ represents the offset from the origin.

Member Function Documentation

VECTOR3D PLANEEQF::getNormal ( )
inline

Returns a VECTOR3D containing the normal of the plane (a,b,c).

References a, b, and c.

Member Data Documentation

float PLANEEQF::a

The x value in the plane normal.

Referenced by RENDER_PARAMS::CombineWith(), and getNormal().

float PLANEEQF::b

The y value in the plane normal.

Referenced by RENDER_PARAMS::CombineWith(), and getNormal().

float PLANEEQF::c

The z value in the plane normal.

Referenced by RENDER_PARAMS::CombineWith(), and getNormal().

float PLANEEQF::d

The offset of the plane from the origin.

Referenced by RENDER_PARAMS::CombineWith().