Options
All
  • Public
  • Public/Protected
  • All
Menu

Vector of three floating point numbers

since

5.0

Hierarchy

Index

Constructors

  • new Vec3d(x: number, y: number, z: number): Vec3d
  • new Vec3d(vector: Vec3d): Vec3d
  • Constructs a new Vec3d instance from three given coordinates

    since

    5.0

    Parameters

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

    Returns Vec3d

  • Constructs a copy of given Vec3d

    since

    5.0

    Parameters

    Returns Vec3d

Properties

x: number
y: number
z: number
ZERO: Vec3d
new Vec3d(0.0d, 0.0d, 0.0d);
since

5.0

class: Class<Object>

Methods

  • since

    5.0

    Parameters

    Returns Vec3d

    new vector, which as coordinates has sums of the corresponding coordinates of the following vector and the given vector

  • addVector(x: number, y: number, z: number): Vec3d
  • Same as add(vec: Vec3d), but with three coordinates instead of another vector

    since

    5.0

    Parameters

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

    Returns Vec3d

  • clone(): any
  • distanceTo(vec: Vec3d): number
  • dotProduct(vec: Vec3d): number
  • since

    5.0

    Parameters

    Returns number

    sum of products of corresponding coordinates of the following vector and the given vector

  • equals(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • finalize(): void
  • getIntermediateWithXValue(vec: Vec3d, x: number): Vec3d
  • getIntermediateWithYValue(vec: Vec3d, x: number): Vec3d
  • getIntermediateWithZValue(vec: Vec3d, x: number): Vec3d
  • hashCode(): number
  • lengthSquared(): number
  • lengthVector(): number
  • notify(): void
  • notifyAll(): void
  • rotatePitch(pitch: number): Vec3d
  • rotateYaw(yaw: number): Vec3d
  • scale(factor: number): Vec3d
  • since

    5.0

    Parameters

    • factor: number

    Returns Vec3d

    new vector with coordinates of the following vector multiplied by given factor

  • squareDistanceTo(vec: Vec3d): number
  • squareDistanceTo(x: number, y: number, z: number): number
  • subtract(vec: Vec3d): Vec3d
  • subtract(x: number, y: number, z: number): Vec3d
  • Same as subtract(vec: Vec3d), but with three coordinates instead of another vector

    since

    5.0

    Parameters

    Returns Vec3d

    new vector, which as coordinates has differences of the corresponding coordinates of the following vector and the given vector

  • Same as subtract(vec: Vec3d), but with three coordinates instead of another vector

    since

    5.0

    Parameters

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

    Returns Vec3d

  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void
  • Returns void

  • Parameters

    • param0: number

    Returns void

  • Parameters

    • param0: number
    • param1: number

    Returns void

  • fromPitchYaw(pitch: number, yaw: number): Vec3d

Generated using TypeDoc