non-gon
    Preparing search index...

    Function SAT

    • Projects corners of a shape onto an axis and returns the min and max projections. Used in the Separating Axis Theorem (SAT).

      Parameters

      • axis: Vector3

        The axis to project onto.

      • corners: Vector3[]

        An array of corner points (vertices) of the shape.

      • minAlong: number

        Variable to store minimum projection (overwritten).

      • maxAlong: number

        Variable to store maximum projection (overwritten).

      Returns number[]

      An array with the min and max projected values.