aboutsummaryrefslogtreecommitdiff
path: root/components/euler_angle/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/euler_angle/index.js')
-rw-r--r--components/euler_angle/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/components/euler_angle/index.js b/components/euler_angle/index.js
new file mode 100644
index 0000000..d1323a3
--- /dev/null
+++ b/components/euler_angle/index.js
@@ -0,0 +1,20 @@
+import { Component } from '@serpentity/serpentity';
+
+/*
+ * EulerAngle component, stores the value of an euler
+ * angle.
+ * Public members:
+ * -pitch <Number> // the rotation on the x axis
+ * -yaw <Number> // the rotation on the y axis
+ * -roll <Number> // the rotation on the z axis
+ */
+export default class EulerAngle extends Component {
+ constructor(config) {
+
+ super(config)
+
+ this.pitch = this.pitch || 0;
+ this.yaw = this.yaw || 0;
+ this.roll = this.roll || 0;
+ }
+};