8 #ifndef META_OCEAN_MATH_BOUNDING_BOX_H
9 #define META_OCEAN_MATH_BOUNDING_BOX_H
231 ocean_assert(invertedTransformation.
isValid());
236 position = transformation * position;
245 ocean_assert(invertedTransformation.
isValid());
250 position = transformation * position;
260 ocean_assert(invertedTransformation.
isValid());
265 position = transformation * position;
275 ocean_assert(invertedTransformation.
isValid());
280 position = transformation * position;
289 ocean_assert(invertedTransformation.
isValid());
294 position = transformation * position;
304 ocean_assert(invertedTransformation.
isValid());
309 position = transformation * position;
This class implements a 3D bounding box.
Definition: BoundingBox.h:23
BoundingBox()
Creates an invalid bounding box.
Definition: BoundingBox.h:199
bool positiveFrontIntersection(const Line3 &ray, Vector3 &position, Scalar &distance, Vector3 &normal, Vector2 &textureCoordinate) const
Returns the front intersection point between a given ray and this box whenever the distance is positi...
bool positiveBackIntersection(const Line3 &ray, Vector3 &position, Scalar &distance, Vector3 &normal, Vector2 &textureCoordinate) const
Returns the back intersection point between a given ray and this box whenever the distance is positiv...
bool positiveBackIntersection(const Line3 &ray, Vector3 &position, Scalar &distance, Vector3 &normal) const
Returns the back intersection point between a given ray and this box whenever the distance is positiv...
bool positiveFrontIntersection(const Line3 &ray, Vector3 &position, Scalar &distance, Vector3 &normal) const
Returns the front intersection point between a given ray and this box whenever the distance is positi...
bool positiveFrontIntersection(const Line3 &ray, Vector3 &position, Scalar &distance) const
Returns the front intersection point between a given ray and this box whenever the distance is positi...
bool positiveBackIntersection(const Line3 &ray, Vector3 &position, Scalar &distance) const
Returns the back intersection point between a given ray and this box whenever the distance is positiv...
VectorT3< T > transposedRotationMatrix(const VectorT3< T > &vector) const
Transforms a 3D vector by application of only the inner transposed rotation matrix (including scale a...
Definition: HomogenousMatrix4.h:1947
SquareMatrixT3< T > rotationMatrix() const
Returns the rotation matrix of the transformation.
Definition: HomogenousMatrix4.h:1493
bool isValid() const
Returns whether this matrix is a valid homogeneous transformation.
Definition: HomogenousMatrix4.h:1806
This class implements an infinite line in 3D space.
Definition: Line3.h:70
bool isValid() const
Returns whether this line has valid parameters.
Definition: Line3.h:303
const VectorT3< T > & direction() const
Returns the direction of the line.
Definition: Line3.h:284
const VectorT3< T > & point() const
Returns a point on the line.
Definition: Line3.h:271
VectorT3< T > normalizedOrZero() const
Returns the normalized vector.
Definition: Vector3.h:619
LineT3< Scalar > Line3
Definition of the Line3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with single o...
Definition: Line3.h:21
float Scalar
Definition of a scalar type.
Definition: Math.h:128
std::vector< Vector3 > Vectors3
Definition of a vector holding Vector3 objects.
Definition: Vector3.h:65
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15