Skip to content

ludus::foundation::math::ProjectedPolygonInput

Ludus Wiki · API overview · Browse API

Struct

A convex planar polygon in the tangent space of a shading point.
The shading point is the origin and the shading normal is +z, the frame the paper shares with linearly transformed cosines (section 3.1). Coordinates need not be normalized. The polygon must be convex and planar with no three collinear vertices (paper section 3.1 and supplement A.2); these preconditions are not detected. Either winding is accepted: a polygon seen counterclockwise from the origin is mirrored internally (paper section 3.1).

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

#include <ludus/foundation/math/projected_solid_angle.hpp>
struct ludus::foundation::math::ProjectedPolygonInput final

Fields

PositionsTangent

Vector3 ludus::foundation::math::ProjectedPolygonInput::PositionsTangent[MAX_PROJECTED_POLYGON_INPUT_VERTICES][MAX_PROJECTED_POLYGON_INPUT_VERTICES] {}
Valid prefix of VertexCount positions relative to the shading point.

Related types: Vector3

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

VertexCount

uint32 ludus::foundation::math::ProjectedPolygonInput::VertexCount = 0
Number of vertices, MIN_PROJECTED_POLYGON_VERTICES through MAX_PROJECTED_POLYGON_INPUT_VERTICES.

Related types: uint32

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