Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConvexPolygon

A shape that is a convex polygon. A shape that is a convex polygon.

Hierarchy

  • ConvexPolygon

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ConvexPolygon(vertices: Float32Array, skipConvexHullComputation: boolean): ConvexPolygon
  • new ConvexPolygon(vertices: Float32Array, skipConvexHullComputation: boolean): ConvexPolygon
  • Creates a new convex polygon shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • skipConvexHullComputation: boolean

      If set to true, the input points will be assumed to form a convex polyline and no convex-hull computation will be done automatically.

    Returns ConvexPolygon

  • Creates a new convex polygon shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • skipConvexHullComputation: boolean

      If set to true, the input points will be assumed to form a convex polyline and no convex-hull computation will be done automatically.

    Returns ConvexPolygon

Properties

Readonly skipConvexHullComputation

skipConvexHullComputation: boolean

Do we want to assume the vertices already form a convex hull? Do we want to assume the vertices already form a convex hull?

Readonly vertices

vertices: Float32Array

The vertices of the convex polygon. The vertices of the convex polygon.

Methods

intoRaw

  • intoRaw(): RawShape
  • intoRaw(): RawShape
  • Returns RawShape

  • Returns RawShape

Generated using TypeDoc