Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vector3

Index

Constructors

constructor

  • new Vector3(values?: number[]): Vector3

Properties

Private _values

_values: Float32Array = new Float32Array(3)

Accessors

x

x:

xy

xy:

xyz

xyz:

y

y:

z

z:

Static backward

backward:

Static down

down:

Static forward

forward:

Static left

left:

Static one

one:

Static right

right:

Static up

up:

Static zero

zero:

Methods

add

at

  • at(index: number): number
  • Parameters

    • index: number

    Returns number

copy

divide

equals

  • equals(other: Vector3, threshold?: number): boolean
  • Parameters

    • other: Vector3
    • Default value threshold: number = EPSILON

    Returns boolean

length

  • length(): number

multiply

negate

normalize

reset

  • reset(): void

scale

squaredLength

  • squaredLength(): number

subtract

Static cross

Static difference

Static direction

Static distance

Static dot

Static lerp

Static product

Static quotient

Static squaredDistance

Static sum

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc