Pose
class Pose
Data class of camera's pose
constructor
new Pose(yaw, pitch, zoom, pivot)
Create new instance of pose
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
yaw | number | yaw | ||
pitch | number | pitch | ||
zoom | number | zoom | ||
pivot | Array<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
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
pose | Pose | pose to copy |
equals
Return whether values of this pose is equal to other pose
Returns: boolean
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
pose | Pose | pose to check |