aboutsummaryrefslogtreecommitdiff
path: root/lib/components/angle.js
blob: 65feeab9406dcd091b2a0562bc7d7ec3ae3dcb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Component } from '@serpentity/serpentity';

/**
 * Component that stores an angle
 *
 * @extends {external:Serpentity.Component}
 * @class AngleComponent
 * @param {object} config a configuration object to extend.
 */
export default class AngleComponent extends Component {
  constructor(config) {

    super(config);

    /**
     * The properthy that holds the angle
     *
     * @property {number} angle
     * @instance
     * @memberof AngleComponent
     */
    this.angle = this.angle || 0;
  }
};