Skip to content

ludus::foundation::math::RayOriginOffset

Ludus Wiki · API overview · Browse API

Struct

Error-aware origin offset input; every vector is finite world-space data.

Declared in modules/foundation/math/include/ludus/foundation/math/queries.hpp

#include <ludus/foundation/math/queries.hpp>
struct ludus::foundation::math::RayOriginOffset final

Fields

Position

Vector3 ludus::foundation::math::RayOriginOffset::Position {}
Reconstructed surface position in world units.

Related types: Vector3

Declared in modules/foundation/math/include/ludus/foundation/math/queries.hpp

Error

Vector3 ludus::foundation::math::RayOriginOffset::Error {}
Nonnegative absolute componentwise reconstruction error in world units.

Related types: Vector3

Declared in modules/foundation/math/include/ludus/foundation/math/queries.hpp

GeometricNormal

Vector3 ludus::foundation::math::RayOriginOffset::GeometricNormal {0, 0, 1}
Unit geometric surface normal, not a perturbed/interpolated shading normal.

Related types: Vector3

Declared in modules/foundation/math/include/ludus/foundation/math/queries.hpp

Direction

Vector3 ludus::foundation::math::RayOriginOffset::Direction {0, 0, 1}
Unit outgoing ray direction, determining which side of the surface to offset.

Related types: Vector3

Declared in modules/foundation/math/include/ludus/foundation/math/queries.hpp