r3-legacy/src/r3-d3-api-spline.js

23 lines
472 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
2019-07-24 14:45:42 +02:00
* R3.D3.API.Spline
* @param apiComponent
2018-04-09 09:35:04 +02:00
* @param vertices R3.API.Vector3[]
* @constructor
*/
R3.D3.API.Spline = function(
2019-07-24 14:45:42 +02:00
apiComponent,
vertices
2018-04-09 09:35:04 +02:00
) {
2019-10-06 21:11:18 +02:00
__API_COMPONENT__;
2018-04-09 09:35:04 +02:00
2019-10-06 21:11:18 +02:00
if (R3.Utils.UndefinedOrNull(apiComponent.vertices)) {
apiComponent.vertices = [];
2018-04-09 09:35:04 +02:00
}
2019-10-06 21:11:18 +02:00
this.vertices = apiComponent.vertices;
2018-04-09 09:35:04 +02:00
};
R3.D3.API.Spline.prototype = Object.create(R3.API.Component.prototype);
R3.D3.API.Spline.prototype.constructor = R3.D3.API.Spline;