Box2.h
Go to the documentation of this file.
39 Box2(const BoundingBox2D& boundingBox, const Transform2& transform = Transform2(), bool isNormalFlipped = false);
SurfaceRayIntersection2 ClosestIntersectionLocal(const Ray2D &ray) const override
Returns the closest intersection point for given ray in local frame.
Builder & WithLowerCorner(const Vector2D &pt)
Returns builder with lower corner set.
BoundingBox2D BoundingBoxLocal() const override
Returns the bounding box of this surface object in local frame.
BoundingBox2< double > BoundingBox2D
Double-type 2-D BoundingBox.
Definition: BoundingBox2.h:126
Transform2 transform
Local-to-world transform.
Definition: Surface2.h:36
Structure that represents ray-surface intersection point.
Definition: Surface2.h:23
Builder & WithUpperCorner(const Vector2D &pt)
Returns builder with upper corner set.
Vector2D ClosestPointLocal(const Vector2D &otherPoint) const override
Box2(const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
Constructs (0, 0) x (1, 1) box.
Box2Ptr MakeShared() const
Builds shared pointer of Box2 instance.
Definition: pybind11Utils.h:24
bool IntersectsLocal(const Ray2D &ray) const override
std::shared_ptr< Box2 > Box2Ptr
Shared pointer type for the Box2.
Definition: Box2.h:61
Builder & WithBoundingBox(const BoundingBox2D &bbox)
Returns builder with bounding box.
Vector2D ClosestNormalLocal(const Vector2D &otherPoint) const override