66 vertex.
tangent = normalize(mix(
v1.tangent,
v2.tangent, 0.5));
decltype(std::declval< const Primitive * >() ->edges()) Type
Definition Utility.hpp:25
Vector2i vertices
Definition Edge.hpp:16
A point on a path.
Definition ShapeVertex.hpp:16
Vector2 position
Definition ShapeVertex.hpp:18
Vector2 tangent
Unit length vector parallel to the shape at this point.
Definition ShapeVertex.hpp:22
double texCoord
Definition ShapeVertex.hpp:24
Definition SubdivideShape.hpp:21
bool done() const noexcept
Definition SubdivideShape.hpp:23
Edge generate() const
Definition SubdivideShape.hpp:25
void next()
Definition SubdivideShape.hpp:34
Edges(const SubdivideShape &shape)
Definition SubdivideShape.hpp:47
const SubdivideShape * mShape
Definition SubdivideShape.hpp:41
int i_
Definition SubdivideShape.hpp:45
EdgeGeneratorType< Shape >::Type mEdges
Definition SubdivideShape.hpp:43
Definition SubdivideShape.hpp:52
ShapeVertex generate() const
Definition SubdivideShape.hpp:56
int vertexIndex_
Definition SubdivideShape.hpp:81
bool done() const noexcept
Definition SubdivideShape.hpp:54
Vertices(const SubdivideShape &shape)
Definition SubdivideShape.hpp:85
void next()
Definition SubdivideShape.hpp:71
EdgeGeneratorType< Shape >::Type mEdges
Definition SubdivideShape.hpp:83
const SubdivideShape * mShape
Definition SubdivideShape.hpp:79
Cuts each edge in half.
Definition SubdivideShape.hpp:19
Vector< ShapeVertex > mVertexCache
Definition SubdivideShape.hpp:103
Edges edges() const noexcept
Definition SubdivideShape.hpp:96
Vertices vertices() const noexcept
Definition SubdivideShape.hpp:98
Shape mShape
Definition SubdivideShape.hpp:101
SubdivideShape(Shape shape)
Definition SubdivideShape.hpp:90
A type that describes a conjunction of shapes that can be filled and stroked.
Definition Shape.hpp:198
Definition AnyGenerator.hpp:12
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25