Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Point3D

A point in 3D space.

Hierarchy

  • Point3D

Index

Constructors

constructor

  • new Point3D(__namedParameters?: { x?: number; y?: number; z?: number }): Point3D
  • Parameters

    • __namedParameters: { x?: number; y?: number; z?: number } = ...
      • Optional x?: number
      • Optional y?: number
      • Optional z?: number

    Returns Point3D

Properties

x

x: number

y

y: number

z

z: number

Methods

length

  • length(): number
  • Returns number

length2

  • length2(): number
  • Returns number

negate

  • negate(): void
  • Returns void

Static add

Static cross

Static distance

Static distance2

Static dot

Static scale

Static subtract