|
geomc 1.0
A c++ linear algebra template library
|
A shape swept along an arc. More...
#include <geomc/shape/Turned.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. | |
| using | T = elem_t |
Public Member Functions | |
| Rect< T, N > | bounds () const |
| T | canonical_angle () const |
| Return the sweep angle clamped to the range [0, 2π]. | |
| bool | contains (Vec< T, N > p) const |
| bool | operator== (const Turned &o) const |
| std::pair< PointType< T, N-1 >, T > | point_and_angle (Vec< T, N > p) const |
| Return the point rotated to the cross sectional plane, and the angle of the original point from the plane. | |
| T | sdf (Vec< T, N > p) const |
| Turned ()=default | |
| Turned (const Shape &shape) | |
| Turned (const Shape &shape, T radians) | |
Static Public Member Functions | |
| static constexpr bool | admits_cusps () |
Public Attributes | |
| T | radians = 2 * std::numbers::pi_v<T> |
| Positive angle to sweep, in [0, 2π]. | |
| Shape | shape |
| Shape to sweep along an arc. | |
Static Public Attributes | |
| static constexpr index_t | N |
| The dimension of this object. | |
A shape swept along an arc.
The cross sectional shape lies in the first N-1 dimensions of the N-dimensional space. The shape is swept along an arc lying on the plane spanned by the first and last bases. The rotational center of the sweep is the origin. The angle is a positive angle between 0 and 2π.
|
inherited |
The type of a point in this object's space.
An N-vector of T if N > 1, otherwise a T.