|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <core/shape/orientedBox.h>
Public Member Functions | |
| bool | containsPoint (const Vector3 &point) const |
| const Vector3 & | halfExtents () 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 Matrix4 & | worldTransform () const |
Definition at line 13 of file orientedBox.h.
| visutwin::canvas::OrientedBox::OrientedBox | ( | ) |
Definition at line 14 of file orientedBox.cpp.
| 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().
| bool visutwin::canvas::OrientedBox::containsPoint | ( | const Vector3 & | point | ) | const |
Definition at line 148 of file orientedBox.cpp.
References visutwin::canvas::Vector3::getX(), visutwin::canvas::Vector3::getY(), and visutwin::canvas::Vector3::getZ().
|
inline |
Definition at line 21 of file orientedBox.h.
Referenced by OrientedBox(), and setHalfExtents().
| bool visutwin::canvas::OrientedBox::intersectsBoundingSphere | ( | const BoundingSphere & | sphere | ) | const |
Definition at line 156 of file orientedBox.cpp.
References visutwin::canvas::BoundingSphere::center(), visutwin::canvas::Vector3::lengthSquared(), and visutwin::canvas::BoundingSphere::radius().
| bool visutwin::canvas::OrientedBox::intersectsRay | ( | const Ray & | ray, |
| Vector3 * | point = nullptr ) const |
Definition at line 131 of file orientedBox.cpp.
References visutwin::canvas::Ray::direction(), visutwin::canvas::Ray::origin(), visutwin::canvas::Ray::set(), and visutwin::canvas::Vector3::transformNormal().
| void visutwin::canvas::OrientedBox::setHalfExtents | ( | const Vector3 & | halfExtents | ) |
Definition at line 33 of file orientedBox.cpp.
References halfExtents().
| void visutwin::canvas::OrientedBox::setWorldTransform | ( | const Matrix4 & | value | ) |
Definition at line 27 of file orientedBox.cpp.
References visutwin::canvas::Matrix4::inverse().
|
inline |
Definition at line 19 of file orientedBox.h.
Referenced by OrientedBox().