Class Vector

Hierarchy

Constructors

Properties

Methods

Constructors

  • Create a new vector value.

    Parameters

    • x: number

      X coordinate.

    • y: number

      Y coordinate.

    • z: number

      Z coordinate.

    • Optional slot: number

    Returns Vector

Properties

_componentName: string = "serializable"

The component's name

data: DataStorage<"vec", Ivec>
slot?: number

Specific slot number.

type: "vec"

Type of the value.

x: number

X coordinate.

y: number

Y coordinate.

z: number

Z coordinate.

Methods

  • Stringify the value.

    Returns `<${number}, ${number}, ${number}>`

Generated using TypeDoc