Skip to content

ludus::foundation::geometry::FrameSample

Ludus Wiki · API overview · Browse API

Struct

One baked frame sample. Vectors are unit length and chunk-relative (Rounded).
Normal is the transported reference direction, perpendicular to Tangent. Samples are ordered by span then parameter; each run starts and ends with a sample, and a joint inside a run has samples at both span sides.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

#include <ludus/foundation/geometry/frame.hpp>
struct ludus::foundation::geometry::FrameSample final

Fields

Parameter

SegmentParameter ludus::foundation::geometry::FrameSample::Parameter {}
Where the sample lies; joints store the incoming u = 1 and outgoing u = 0.

Related types: SegmentParameter

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

Position

math::Vector3 ludus::foundation::geometry::FrameSample::Position {}
Chunk-relative position (Rounded; stored endpoints Exact).

Related types: math::Vector3

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

Tangent

math::Vector3 ludus::foundation::geometry::FrameSample::Tangent {}
Unit tangent of the sample's span.

Related types: math::Vector3

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

Normal

math::Vector3 ludus::foundation::geometry::FrameSample::Normal {}
Unit transported normal before roll and twist compensation.

Related types: math::Vector3

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

Distance

float64 ludus::foundation::geometry::FrameSample::Distance = 0.0
Estimated prefix arc length, asset units.

Related types: float64

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

TwistCorrection

float64 ludus::foundation::geometry::FrameSample::TwistCorrection = 0.0
Closed-loop compensating roll at this sample, radians; 0 otherwise.

Related types: float64

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp

RunIndex

usize ludus::foundation::geometry::FrameSample::RunIndex = 0
Frame run containing the sample.

Related types: usize

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/frame.hpp