#include <tessellator.h>
Public Member Functions | |
Trigs (Scalar pixel_radius) | |
size_t | size () const |
std::vector< Trig >::iterator | begin () const |
std::vector< Trig >::iterator | end () const |
const Trig & | operator[] (size_t index) const |
size_t | GetSteps () const |
Friends | |
class | Tessellator |
Essentially just a vector of Trig objects, but supports storing a reference to either a cached vector or a locally generated vector. The constructor will fill the vector with quarter circular samples for the indicated number of equal divisions if the vector is new.
A given instance of Trigs will always contain at least 2 entries which is the minimum number of samples to traverse a quarter circle in a single step. The first sample will always be (0, 1) and the last sample will always be (1, 0).
Definition at line 48 of file tessellator.h.
|
explicit |
Definition at line 411 of file tessellator.cc.
|
inline |
Definition at line 54 of file tessellator.h.
|
inline |
Definition at line 55 of file tessellator.h.
Referenced by impeller::StrokePathSegmentReceiver::StrokePathSegmentReceiver().
|
inline |
Definition at line 58 of file tessellator.h.
Referenced by impeller::StrokePathSegmentReceiver::RecordArc(), and impeller::testing::TEST().
|
inline |
Definition at line 56 of file tessellator.h.
|
inline |
Definition at line 53 of file tessellator.h.
Referenced by impeller::StrokeRectGeometry::GetPositionBuffer(), impeller::Tessellator::EllipticalVertexGenerator::GetVertexCount(), and impeller::StrokePathSegmentReceiver::StrokePathSegmentReceiver().
|
friend |
Definition at line 61 of file tessellator.h.