diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-07 15:56:30 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-05-07 15:56:30 +0200 |
| commit | 0c7f0571466dd2342a3532eb33d17d0451514fb6 (patch) | |
| tree | 701f2c5f29aef66d94fada9bd277fca35f5c3a31 /components/euler_angle/index.js | |
| parent | 88a36be49c0bccce07ccab0f62f3f701c5bd3554 (diff) | |
Diffstat (limited to 'components/euler_angle/index.js')
| -rw-r--r-- | components/euler_angle/index.js | 20 |
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; + } +}; |