Skip to content

Class: ShapeUtils

Constructors

Methods

Constructors

constructor

new ShapeUtils(): ShapeUtils

Returns

ShapeUtils

Methods

isClockWise

isClockWise(points): boolean

Parameters

NameType
pointsVector2[]

Returns

boolean

Defined in

packages/geometry/ExtrudeGeometry/ShapeUtils.ts:5


area

area(contour): number

Parameters

NameType
contourVector2[]

Returns

number

Defined in

packages/geometry/ExtrudeGeometry/ShapeUtils.ts:9


triangulateShape

triangulateShape(contour, holes): number[][]

Parameters

NameType
contourVector2[]
holesVector2[][]

Returns

number[][]

Defined in

packages/geometry/ExtrudeGeometry/ShapeUtils.ts:18

Released under the MIT License