A class containing utility functions for shapes.

Note that these are all linear functions so it is necessary to calculate separately for x, y (and z, w if present) components of a vector.

Constructors

Methods

  • Calculate area of a ( 2D ) contour polygon.

    Parameters

    Returns number

  • Note that this is a linear function so it is necessary to calculate separately for x, y components of a polygon.

    Parameters

    Returns boolean

    Used internally by THREE.Path | Path, THREE.ExtrudeGeometry | ExtrudeGeometry and THREE.ShapeGeometry | ShapeGeometry.

  • Used internally by THREE.ExtrudeGeometry | ExtrudeGeometry and THREE.ShapeGeometry | ShapeGeometry to calculate faces in shapes with holes.

    Parameters

    Returns number[][]