Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundCuboid

A shape that is a box in 3D and a rectangle in 2D, with round corners. A shape that is a box in 3D and a rectangle in 2D, with round corners.

Hierarchy

  • RoundCuboid

Index

Constructors

Properties

Methods

Constructors

constructor

  • new RoundCuboid(hx: number, hy: number, borderRadius: number): RoundCuboid
  • new RoundCuboid(hx: number, hy: number, borderRadius: number): RoundCuboid
  • Creates a new 2D rectangle.

    Parameters

    • hx: number

      The half width of the rectangle.

    • hy: number

      The helf height of the rectangle.

    • borderRadius: number

      The radius of the borders of this cuboid. This will effectively increase the half-extents of the cuboid by this radius.

    Returns RoundCuboid

  • Creates a new 2D rectangle.

    Parameters

    • hx: number

      The half width of the rectangle.

    • hy: number

      The helf height of the rectangle.

    • borderRadius: number

      The radius of the borders of this cuboid. This will effectively increase the half-extents of the cuboid by this radius.

    Returns RoundCuboid

Properties

borderRadius

borderRadius: number

The radius of the cuboid's round border. The radius of the cuboid's round border.

halfExtents

halfExtents: Vector

The half extent of the cuboid along each coordinate axis. The half extent of the cuboid along each coordinate axis.

Methods

intoRaw

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

  • Returns RawShape

Generated using TypeDoc