Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundTriangle

A shape that is a triangle with round borders and a non-zero thickness. A shape that is a triangle with round borders and a non-zero thickness.

Hierarchy

  • RoundTriangle

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new triangle shape with round corners.

    Parameters

    • a: Vector

      The first point of the triangle.

    • b: Vector

      The second point of the triangle.

    • c: Vector

      The third point of the triangle.

    • borderRadius: number

      The radius of the borders of this triangle. In 3D, this is also equal to half the thickness of the triangle.

    Returns RoundTriangle

  • Creates a new triangle shape with round corners.

    Parameters

    • a: Vector

      The first point of the triangle.

    • b: Vector

      The second point of the triangle.

    • c: Vector

      The third point of the triangle.

    • borderRadius: number

      The radius of the borders of this triangle. In 3D, this is also equal to half the thickness of the triangle.

    Returns RoundTriangle

Properties

Readonly a

The first point of the triangle. The first point of the triangle.

Readonly b

The second point of the triangle. The second point of the triangle.

Readonly borderRadius

borderRadius: number

The radius of the triangles's rounded edges and vertices. In 3D, this is also equal to half the thickness of the round triangle. The radius of the triangles's rounded edges and vertices. In 3D, this is also equal to half the thickness of the round triangle.

Readonly c

The second point of the triangle. The second point of the triangle.

Methods

intoRaw

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

  • Returns RawShape

Generated using TypeDoc