Skip to main content

Pose

class Pose

Data class of camera's pose

constructor

new Pose(yaw, pitch, zoom, pivot)

Create new instance of pose

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
yawnumberyaw
pitchnumberpitch
zoomnumberzoom
pivotArray<number>✔️[0, 0, 0]pivot
import { THREE, Pose } from "@egjs/view3d";

const pose = new Pose(180, 45, 150, [5, -1, 3]);

Methods

clone

Clone this pose

Returns: Pose

  • Cloned pose

copy

Copy values from the other pose

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
posePosepose to copy

equals

Return whether values of this pose is equal to other pose

Returns: boolean

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
posePosepose to check