Class ObservableVector3d

Represents a point in a 3D coordinate vector that can be observed for changes.

Constructors

constructor

  • new ObservableVector3d(x?, y?, z?, callback?): ObservableVector3d
  • Creates a new ObservableVector3d instance.

    Parameters

    • x: number = 0

      The x-coordinate of the vector. Default is 0.

    • y: number = 0

      The y-coordinate of the vector. Default is 0.

    • z: number = 0

      The z-coordinate of the vector. Default is 0.

    • Optionalcallback: (() => void)

      The callback function to be called when the point changes. Default is undefined.

        • (): void
        • Returns void

    Returns ObservableVector3d

Accessors

x

y

z

Methods

abs

add

angle

ceil

ceilSelf

clamp

clampSelf

clone

copy

cross

distance

div

dot

equals

floor

floorSelf

length

length2

lerp

maxV

minV

moveTowards

negate

negateSelf

normalize

perp

project

projectN

revoke

rotate

scale

scaleV

set

setCallback

setMuted

setV

setZero

sub

to2d

toIso

toString

Settings

Member Visibility

On This Page

AltStyle によって変換されたページ (->オリジナル) /