Ocean
|
This class implements the base for all quadric object. More...
Public Member Functions | |
Quadric () | |
Creates an invalid quadric. More... | |
bool | isInside (const Vector3 &point) const |
Returns whether a given point lies inside or on the surface of the cone. More... | |
bool | isOnSurface (const Vector3 &point) const |
Returns whether a given point lies on the surface of the cone. More... | |
Scalar | value (const Vector3 &point) const |
Returns the quadric value for a given point. More... | |
Protected Member Functions | |
void | createCombinedQuadric (const SquareMatrix4 &quadric, const HomogenousMatrix4 &transformation) |
Creates the combination of quadric and transformation matrix. More... | |
Protected Attributes | |
SquareMatrix4 | combinedQuadric |
Holds the combined quadric and transformation matrix. More... | |
This class implements the base for all quadric object.
Ocean::Geometry::Quadric::Quadric | ( | ) |
Creates an invalid quadric.
|
protected |
Creates the combination of quadric and transformation matrix.
quadric | Quadric matrix |
transformation | Transformation matrix to be combined with the quadric |
bool Ocean::Geometry::Quadric::isInside | ( | const Vector3 & | point | ) | const |
Returns whether a given point lies inside or on the surface of the cone.
point | Point to check |
bool Ocean::Geometry::Quadric::isOnSurface | ( | const Vector3 & | point | ) | const |
Returns whether a given point lies on the surface of the cone.
point | Point to check |
|
protected |
Holds the combined quadric and transformation matrix.