geomc 1.0
A c++ linear algebra template library
|
Partial specialization of Oriented for Rects. More...
#include <geomc/shape/Oriented.h>
Public Types | |
typedef PointType< T, N >::point_t | point_t |
typedef T | elem_t |
The coordinate type of this shape. | |
Public Member Functions | |
Oriented () | |
Construct an empty axis-aligned box. | |
Oriented (const Rect< T, N > &box) | |
Construct an axis-aligned box from the given Rect. | |
Oriented (const Rect< T, N > &box, const AffineTransform< T, N > &xf) | |
Construct an oriented box from the given Rect and object-to-world transformation. | |
Rect< T, N > | bounds () const |
Obtain an axis-aligned bounding box for this shape. | |
Oriented< Rect< T, N > > | oriented_bounds () const |
Return this . | |
Vec< T, N > | convex_support (Vec< T, N > d) const |
bool | contains (Vec< T, N > p) const |
Returns true if and only if p is inside or on the surface of this shape. | |
bool | intersects (const Rect< T, N > &r) |
bool | intersects (const Oriented< Rect< T, N > > &b1) |
Rect< T, 1 > | intersect (const Ray< T, N > &r) const |
Ray-shape intersection. | |
T | volume () const |
Compute the volume of this transformed Rect. | |
bool | intersects (const Convex< T, N, Shape > &other) const |
Convex shape overlap test. More... | |
Public Attributes | |
Rect< T, N > | shape |
Un-transformed extents. | |
AffineTransform< T, N > | xf |
Transformation orienting shape . | |
Static Public Attributes | |
static constexpr size_t | N = _N |
The dimension of this shape. | |
Partial specialization of Oriented for Rects.
Convex shape overlap test.
other
; false otherwise. Test whether this Oriented<Rect> overlaps another.
b1 | OritentedRect to test against. |
true
if and only if this
overlaps with b1
; false
otherwise. Test whether this Oriented<Rect> overlaps an axis-aligned Rect.
b1 | OritentedRect to test against. |
true
if and only if this
overlaps with b1
; false
otherwise.