/** * API Spline * @param id String * @param name String * @param vertices GameLib.API.Vector3[] * @constructor */ GameLib.D3.API.Spline = function( id, name, vertices ) { if (GameLib.Utils.UndefinedOrNull(id)) { id = GameLib.Utils.RandomId(); } this.id = id; if (GameLib.Utils.UndefinedOrNull(name)) { name = 'Spline (unknown)'; } this.name = name; if (GameLib.Utils.UndefinedOrNull(vertices)) { vertices = []; } this.vertices = vertices; };