Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vector3

Index

Constructors

constructor

  • new Vector3(x?: number, y?: number, z?: number): Vector3

Properties

Private _x

_x: number

Private _y

_y: number

Private _z

_z: number

Accessors

x

  • get x(): number
  • set x(x: number): void

y

  • get y(): number
  • set y(y: number): void

z

  • get z(): number
  • set z(z: number): void

Methods

add

addScalar

  • addScalar(scalar: number): Vector3

addScaledVector

addVectors

clone

copy

cross

crossVectors

divide

divideScaledVector

divideVectors

dotProduct

  • dotProduct(vector3: Vector3): number

fromArray

  • fromArray(array: Array<number>, offset?: number): Vector3

getDistance

  • getDistance(vector3: Vector3): number

getMagnitude

  • getMagnitude(): number

getSquaredDistance

  • getSquaredDistance(vector3: Vector3): number

getSquaredMagnitude

  • getSquaredMagnitude(): number

halve

max

maxScalar

  • maxScalar(scalar: number): Vector3

min

minScalar

  • minScalar(scalar: number): Vector3

multiply

multiplyScaledVector

multiplyVectors

normalize

origin

scale

set

  • set(x: number, y: number, z: number): Vector3

subtract

subtractScalar

  • subtractScalar(scalar: number): Vector3

subtractScaledVector

subtractVectors

toArray

  • toArray(): Array<number>

toString

  • toString(): string