geomc 1.0
A c++ linear algebra template library
|
Implementation of AnyConvex for a specific Shape. More...
#include <geomc/shape/Shape.h>
Public Types | |
using | elem_t |
The coordinate type of this object. | |
using | point_t |
The type of a point in this object's space. | |
typedef Shape::elem_t | T |
Public Member Functions | |
AnyConvexImpl (const Shape &&s) | |
AnyConvexImpl (const Shape &s) | |
Rect< Shape::elem_t, N > | bounds () const |
point_t | convex_support (point_t d) const |
point_t | convex_support (point_t d) const |
Geometric convex support function. | |
bool | intersects (const Convex< Shape::elem_t, N, Shape > &other) const |
Convex shape overlap test. | |
Public Attributes | |
Shape | shape |
Static Public Attributes | |
static constexpr index_t | N = Shape::N |
Protected Member Functions | |
virtual Rect< T, N > | _impl_bounds () const |
virtual point_t | _impl_convex_support (Vec< T, N > p) const |
Implementation of AnyConvex for a specific Shape.
|
inherited |
The type of a point in this object's space.
An N-vector of T if N > 1, otherwise a T.
Geometric convex support function.
Returns the point on the surface of this convex shape that is furthest along direction d
(i.e., has the highest dot product with d
).
All shapes which implement this function automatically support geometrical intersection tests with any other Convex object.
d | Direction along which to find a support plane. |
Convex shape overlap test.
other
; false otherwise.