VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::OrientedBox Class Reference

#include <core/shape/orientedBox.h>

Public Member Functions

bool containsPoint (const Vector3 &point) const
const Vector3halfExtents () const
bool intersectsBoundingSphere (const BoundingSphere &sphere) const
bool intersectsRay (const Ray &ray, Vector3 *point=nullptr) const
 OrientedBox ()
 OrientedBox (const Matrix4 &worldTransform, const Vector3 &halfExtents=Vector3(0.5f))
void setHalfExtents (const Vector3 &halfExtents)
void setWorldTransform (const Matrix4 &value)
const Matrix4worldTransform () const

Detailed Description

Definition at line 13 of file orientedBox.h.

Constructor & Destructor Documentation

◆ OrientedBox() [1/2]

visutwin::canvas::OrientedBox::OrientedBox ( )

Definition at line 14 of file orientedBox.cpp.

◆ OrientedBox() [2/2]

visutwin::canvas::OrientedBox::OrientedBox ( const Matrix4 & worldTransform,
const Vector3 & halfExtents = Vector3(0.5f) )

Definition at line 20 of file orientedBox.cpp.

References halfExtents(), and worldTransform().

Member Function Documentation

◆ containsPoint()

bool visutwin::canvas::OrientedBox::containsPoint ( const Vector3 & point) const

◆ halfExtents()

const Vector3 & visutwin::canvas::OrientedBox::halfExtents ( ) const
inline

Definition at line 21 of file orientedBox.h.

Referenced by OrientedBox(), and setHalfExtents().

◆ intersectsBoundingSphere()

bool visutwin::canvas::OrientedBox::intersectsBoundingSphere ( const BoundingSphere & sphere) const

◆ intersectsRay()

bool visutwin::canvas::OrientedBox::intersectsRay ( const Ray & ray,
Vector3 * point = nullptr ) const

◆ setHalfExtents()

void visutwin::canvas::OrientedBox::setHalfExtents ( const Vector3 & halfExtents)

Definition at line 33 of file orientedBox.cpp.

References halfExtents().

◆ setWorldTransform()

void visutwin::canvas::OrientedBox::setWorldTransform ( const Matrix4 & value)

Definition at line 27 of file orientedBox.cpp.

References visutwin::canvas::Matrix4::inverse().

◆ worldTransform()

const Matrix4 & visutwin::canvas::OrientedBox::worldTransform ( ) const
inline

Definition at line 19 of file orientedBox.h.

Referenced by OrientedBox().


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