geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
Truned< Shape > Struct Template Reference

A shape swept along an arc. More...

#include <geomc/shape/Turned.h>

Inheritance diagram for Truned< Shape >:
Dimensional< Shape::elem_t, Shape::N+1 >

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, Nbounds () const
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.
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

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.

Detailed Description

template<typename Shape>
struct geom::Truned< Shape >

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π.

Member Typedef Documentation

◆ point_t

using point_t
inherited

The type of a point in this object's space.

An N-vector of T if N > 1, otherwise a T.


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