Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cuboid

A shape that is a box in 3D and a rectangle in 2D. A shape that is a box in 3D and a rectangle in 2D.

Hierarchy

  • Cuboid

Index

Constructors

Properties

Methods

Constructors

constructor

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

    Parameters

    • hx: number

      The half width of the rectangle.

    • hy: number

      The helf height of the rectangle.

    Returns Cuboid

  • Creates a new 2D rectangle.

    Parameters

    • hx: number

      The half width of the rectangle.

    • hy: number

      The helf height of the rectangle.

    Returns Cuboid

Properties

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