Box.hpp
Go to the documentation of this file.
BoundingBox< double, N > BoundingBoxLocal() const override
Returns the bounding box of this surface object in local frame.
SurfaceRayIntersection< N > ClosestIntersectionLocal(const Ray< double, N > &ray) const override
Returns the closest intersection point for given ray in local frame.
Definition: Matrix.hpp:27
static std::enable_if_t< IsMatrixSizeStatic< Rows, Cols >), D > MakeConstant(ValueType val)
Makes a static matrix with constant entries.
Definition: MatrixDenseBase-Impl.hpp:152
Definition: pybind11Utils.hpp:20
Box(const Transform< N > &_transform=Transform< N >{}, bool _isNormalFlipped=false)
Constructs (0, 0, ...) x (1, 1, ...) box.
Struct that represents ray-surface intersection point.
Definition: Surface.hpp:25
Vector< double, N > ClosestPointLocal(const Vector< double, N > &otherPoint) const override
std::shared_ptr< Box2 > Box2Ptr
Shared pointer type for the Box2.
Definition: Box.hpp:91
Vector< double, N > ClosestNormalLocal(const Vector< double, N > &otherPoint) const override
std::shared_ptr< Box3 > Box3Ptr
Shared pointer type for the Box3.
Definition: Box.hpp:94
bool IntersectsLocal(const Ray< double, N > &ray) const override