Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vector3

Hierarchy

  • Vector3

Implements

Index

Constructors

constructor

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

Properties

x

x: number

y

y: number

z

z: number

Accessors

Length

  • get Length(): number

normalize

Methods

add

clone

crossProduct

distance

  • distance(v: IVec3): number
  • The distance between two Vectors.

    Parameters

    • v: IVec3

      Vector3 to find distance between.

    Returns number

    Distance between this and another vector.

distanceSquared

  • distanceSquared(v: IVec3): number
  • The product of the Euclidean magnitudes of this and another Vector3.

    Parameters

    • v: IVec3

      Vector3 to find Euclidean magnitude between.

    Returns number

    Euclidean magnitude with another vector.

divide

multiply

replace

  • replace(v: IVec3): void

subtract

Static add

Static clone

Static create

Static crossProduct

Static divide

Static dotProduct

Static multiply

Static normalize

Static subtract

Generated using TypeDoc