Options
All
  • Public
  • Public/Protected
  • All
Menu

A vector with cartesian coordinates and immutable.

Hierarchy

  • VectorE3
    • R3

Index

Properties

Readonly x

x: number

Readonly y

y: number

Readonly z

z: number

Methods

__add__

  • __add__(rhs: VectorE3): Readonly<R3>

__mul__

  • __mul__(rhs: number): Readonly<R3>

__neg__

  • __neg__(): Readonly<R3>

__pos__

  • __pos__(): Readonly<R3>

__radd__

  • __radd__(lhs: VectorE3): Readonly<R3>

__rmul__

  • __rmul__(lhs: number): Readonly<R3>

__rsub__

  • __rsub__(lhs: VectorE3): Readonly<R3>

__sub__

  • __sub__(rhs: VectorE3): Readonly<R3>

add

  • add(rhs: VectorE3): Readonly<R3>

cross

  • cross(rhs: VectorE3): Readonly<R3>

direction

  • direction(): Readonly<R3>
  • Returns the unit vector for this vector. Returns undefined if the magnitude is zero.

    Returns Readonly<R3>

dot

  • dot(rhs: VectorE3): number

magnitude

  • magnitude(): number

projectionOnto

  • projectionOnto(direction: VectorE3): Readonly<R3>

rejectionFrom

  • rejectionFrom(direction: VectorE3): Readonly<R3>

rotate

  • rotate(R: SpinorE3): Readonly<R3>

scale

  • scale(α: number): Readonly<R3>

sub

  • sub(rhs: VectorE3): Readonly<R3>

toString

  • toString(): string

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc