Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundConvexPolygon

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

Hierarchy

  • RoundConvexPolygon

Index

Constructors

constructor

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

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • borderRadius: number

      The radius of the borders of this convex polygon.

    • 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 RoundConvexPolygon

  • Creates a new convex polygon shape.

    Parameters

    • vertices: Float32Array

      The coordinates of the convex polygon's vertices.

    • borderRadius: number

      The radius of the borders of this convex polygon.

    • 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 RoundConvexPolygon

Properties

Readonly borderRadius

borderRadius: number

The radius of the convex polygon's rounded edges and vertices. The radius of the convex polygon's rounded edges and vertices.

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