math docs
    Preparing search index...

    Function signedArea

    • Returns the signed area of the triangle (a, b, c). The result is positive when the vertices wind counter-clockwise, negative when they wind clockwise, and zero when the three points are collinear.

      Parameters

      • a: vec2.Vec2

        the first vertex of the triangle.

      • b: vec2.Vec2

        the second vertex of the triangle.

      • c: vec2.Vec2

        the third vertex of the triangle.

      Returns number

      the signed area.