Published unlisted
Edited
Jul 31, 2021
Insert cell
Insert cell
core = require("https://cdn.jsdelivr.net/npm/@openhps/core@0.3.0-alpha.68")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
orientation1 = new core.Orientation(0, 0, 0, 1);
Insert cell
Insert cell
orientation3 = core.Orientation.fromEuler([0.7, 0, 0.7])
Insert cell
orientation4 = core.Orientation.fromEuler({
x: 45,
y: 0,
z: 90,
order: "XYZ",
unit: core.AngleUnit.DEGREE
})
Insert cell
orientation5 = core.Orientation.fromEuler(
new core.Euler(45, 0, 90, "XYZ", core.AngleUnit.DEGREE)
)
Insert cell
Insert cell
orientation6 = core.Orientation.fromAxisAngle([0.7, 0, 0.7])
Insert cell
orientation7 = core.Orientation.fromAxisAngle({
x: 45,
y: 0,
z: 90,
unit: core.AngleUnit.DEGREE
})
Insert cell
Insert cell
orientation8 = core.Orientation.fromAxisAngle(
new core.AxisAngle(45, 0, 90, null, core.AngleUnit.DEGREE)
)
Insert cell
Insert cell
Insert cell
orientation8.toRotationMatrix()
Insert cell
Insert cell
orientation5.toEuler()
Insert cell
Insert cell
orientation5.toEuler('ZXY')
Insert cell
orientation5.toEuler().toVector(core.AngleUnit.DEGREE)
Insert cell
Insert cell
orientation6.toAxisAngle()
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more