Contents

SushiEngine

clip_segment_to_near_plane

OverlayWorldSegment clip_segment_to_near_plane(const Matrix4 &view_projection, const Vector3 &from, const Vector3 &to, Scalar minimum_w) noexcept

Parameters

NameType
view_projectionconst Matrix4 &
fromconst Vector3 &
toconst Vector3 &
minimum_wScalar

Returns

OverlayWorldSegment

The surviving segment, or one marked not visible when neither end is in front.

Description

Trims a segment to the part in front of the near plane.

See also

engine/foundation/core/include/README.md