s2js
    Preparing search index...
    • Returns the square of the sine of this chord angle. It is more efficient than Sin.

      Let a be the (non-squared) chord length, and let A be the corresponding half-angle (a = 2sin(A)). The formula below can be derived from: sin(2A) = 2 * sin(A) * cos(A) cos^2(A) = 1 - sin^2(A) This is much faster than converting to an angle and computing its sine.

      Parameters

      • c: number

      Returns number