geomc 1.0
A c++ linear algebra template library
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
AnyConvexImpl< Shape > Class Template Reference

Implementation of AnyConvex for a specific Shape. More...

#include <geomc/shape/Shape.h>

Inheritance diagram for AnyConvexImpl< Shape >:
AnyConvex< Shape::elem_t, Shape::N > Convex< T, N, Derived > Bounded< T, N, Derived >

Public Types

typedef Shape::elem_t T
 
typedef PointType< T, N >::point_t point_t
 
typedef T elem_t
 The coordinate type of this shape.
 

Public Member Functions

 AnyConvexImpl (const Shape &s)
 
 AnyConvexImpl (const Shape &&s)
 
point_t convex_support (point_t d) const
 
Rect< Shape::elem_t, N > bounds () const
 
template<typename Shape >
bool intersects (const Convex< T, N, Shape > &other) const
 Convex shape overlap test. More...
 

Public Attributes

Shape shape
 

Static Public Attributes

static constexpr index_t N = Shape::N
 

Protected Member Functions

virtual point_t _impl_convex_support (Vec< T, N > p) const
 
virtual Rect< T, N > _impl_bounds () const
 

Detailed Description

template<typename Shape>
class geom::AnyConvexImpl< Shape >

Implementation of AnyConvex for a specific Shape.

Member Function Documentation

◆ _impl_bounds()

virtual Rect< T, N > _impl_bounds ( ) const
inlineprotectedvirtual

◆ _impl_convex_support()

virtual point_t _impl_convex_support ( Vec< T, N >  p) const
inlineprotectedvirtual

◆ intersects()

bool intersects ( const Convex< T, N, Shape > &  other) const
inlineinherited

Convex shape overlap test.

Returns
True if and only if this convex shape overlaps other; false otherwise.

The documentation for this class was generated from the following file: