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-07-24 14:45:42 +02:00
|
|
|
__API_COMPONENT_MACRO__
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(vertices)) {
|
|
|
|
vertices = [];
|
|
|
|
}
|
|
|
|
this.vertices = vertices;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Spline.prototype = Object.create(R3.API.Component.prototype);
|
|
|
|
R3.D3.API.Spline.prototype.constructor = R3.D3.API.Spline;
|