AutoMovie API
    Preparing search index...

    Whether a world-space segment intersects a perspective-camera frustum.

    The frustum is the intersection of six half-spaces, so it is convex and the segment is clipped against them one plane at a time in its own parameter. Each plane is linear in camera-local coordinates, which gives algebraic crossings rather than chosen samples. This is why the helper exists: a close shot frames the band between roughly 0.71 and 0.99 of a subject's height, so neither end of the subject is on screen while its middle fills the frame. Testing chosen points, the base, the top or the midpoint, reports such a subject absent; clipping finds it. Touching a face counts as meeting it, and a malformed crop throws the RangeError of deliveryCropNdc.

    Type Declaration

    • camera: IAutoMovieResolvedCamera

      World placement in metres and nearly unit rotation; camera looks along local -Z.

    • from: IAutoMovieVector3

      Finite first endpoint in world metres; may equal to for a point test.

    • to: IAutoMovieVector3

      Finite second endpoint in world metres; endpoint order does not orient the test.