Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vector3D

Hierarchy

  • Vector3D

Index

Constructors

constructor

  • new Vector3D(x?: number, y?: number, z?: number, w?: number): Vector3D

Properties

length

length: number

lengthSquared

lengthSquared: number

w

w: number

x

x: number

y

y: number

z

z: number

Static X_AXIS

X_AXIS: Vector3D

Static Y_AXIS

Y_AXIS: Vector3D

Static Z_AXIS

Z_AXIS: Vector3D

Methods

add

clone

copyFrom

  • copyFrom(sourceVector3D: Vector3D): void

crossProduct

decrementBy

dotProduct

equals

  • equals(toCompare: Vector3D, allFour?: boolean): boolean

incrementBy

nearEquals

  • nearEquals(toCompare: Vector3D, tolerance: number, allFour?: boolean): boolean

negate

  • negate(): void

normalize

  • normalize(): number

project

  • project(): void

scaleBy

  • scaleBy(s: number): void

setTo

  • setTo(xa: number, ya: number, za: number): void

subtract

toString

  • toString(): string

Static angleBetween

Static distance

Generated using TypeDoc