Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObservablePoint3D

Represents a point in 3D space.

Hierarchy

  • ObservablePoint
    • ObservablePoint3D

Index

Constructors

constructor

  • new ObservablePoint3D(cb: () => void, scope: any, x?: number, y?: number, z?: number): ObservablePoint3D
  • Creates a new observable point.

    Parameters

    • cb: () => void

      The callback when changed.

        • (): void
        • Returns void

    • scope: any

      The owner of callback.

    • x: number = 0

      The position on the x axis.

    • y: number = 0

      The position on the y axis.

    • z: number = 0

      The position on the z axis.

    Returns ObservablePoint3D

Properties

_x

_x: number

_y

_y: number

cb

cb: () => any

Type declaration

    • (): any
    • Returns any

scope

scope: any

Accessors

array

  • get array(): Float32Array
  • set array(value: Float32Array): void

x

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

y

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

z

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

Methods

clone

copyFrom

copyTo

  • copyTo<T>(p: T): T

equals

set

  • Sets the point to a new x, y and z position.

    Parameters

    • x: number

      The position on the x axis.

    • y: number = x

      The position on the y axis.

    • z: number = x

      The position on the z axis.

    Returns ObservablePoint3D

setFrom

toString

  • toString(): string
  • Returns string

Generated using TypeDoc