Skip to content

ludus::foundation::geometry::ProjectionResult

Ludus Wiki · API overview · Browse API

Struct

Closest point found by a projection, with its global distance enclosure.
Distance and LowerBound bracket the problem: the true distance from the query to the returned parameter's exact point is at most Distance, and the global minimum over the whole path is at least LowerBound.

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

#include <ludus/foundation/geometry/query.hpp>
struct ludus::foundation::geometry::ProjectionResult final

Fields

Parameter

SegmentParameter ludus::foundation::geometry::ProjectionResult::Parameter {}
Chosen parameter; the terminal endpoint of an open path is the last span at u = 1.

Related types: SegmentParameter

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

Position

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

Related types: math::Vector3

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

Distance

float64 ludus::foundation::geometry::ProjectionResult::Distance = 0.0
Upper bound of the distance from the query to the exact point, asset units.

Related types: float64

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

LowerBound

float64 ludus::foundation::geometry::ProjectionResult::LowerBound = 0.0
Lower bound of the global minimum distance, asset units.

Related types: float64

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

Gap

float64 ludus::foundation::geometry::ProjectionResult::Gap = 0.0
Distance - LowerBound rounded up; at most ProjectionGap when IsGapMet.

Related types: float64

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

IsGapMet

bool ludus::foundation::geometry::ProjectionResult::IsGapMet = false
Whether Gap <= the path's ToleranceProfile::ProjectionGap.

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

Guarantee

GuaranteeClass ludus::foundation::geometry::ProjectionResult::Guarantee = GuaranteeClass::Certified
Certified for TryProjectPoint, Approximate otherwise.

Related types: GuaranteeClass

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

IterationCount

usize ludus::foundation::geometry::ProjectionResult::IterationCount = 0
Interval splits performed.

Related types: usize

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