Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Vec3

Hierarchy

  • b2Vec3

Implements

Index

Constructors

constructor

  • new b2Vec3(): b2Vec3
  • newb2Vec3(data: Float32Array): b2Vec3
  • newb2Vec3(x: number, y: number, z: number): b2Vec3
  • Returns b2Vec3

  • Parameters

    • data: Float32Array

    Returns b2Vec3

  • Parameters

    • x: number
    • y: number
    • z: number

    Returns b2Vec3

Properties

Readonly data

data: Float32Array

Static Readonly ZERO

ZERO: Readonly<b2Vec3> = new b2Vec3(0, 0, 0)

Static Readonly s_t0

s_t0: b2Vec3 = new b2Vec3()

Accessors

x

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

  • Parameters

    • value: number

    Returns void

y

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

  • Parameters

    • value: number

    Returns void

z

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

  • Parameters

    • value: number

    Returns void

Methods

Clone

  • Returns b2Vec3

Copy

  • Copy(other: XYZ): this
  • Parameters

    Returns this

SelfAdd

  • SelfAdd(v: XYZ): this
  • Parameters

    Returns this

SelfAddXYZ

  • SelfAddXYZ(x: number, y: number, z: number): this
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns this

SelfMul

  • SelfMul(s: number): this
  • Parameters

    • s: number

    Returns this

SelfNeg

  • SelfNeg(): this
  • Returns this

SelfSub

  • SelfSub(v: XYZ): this
  • Parameters

    Returns this

SelfSubXYZ

  • SelfSubXYZ(x: number, y: number, z: number): this
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns this

SetXYZ

  • SetXYZ(x: number, y: number, z: number): this
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns this

SetZero

  • SetZero(): this
  • Returns this

Static CrossV3V3

  • CrossV3V3<T>(a: XYZ, b: XYZ, out: T): T
  • Type parameters

    Parameters

    Returns T

Static DotV3V3

  • DotV3V3(a: XYZ, b: XYZ): number
  • Parameters

    Returns number

Generated using TypeDoc