r3-legacy/src/r3-api-sphere.js

21 lines
349 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
* R3.API.Sphere
* @constructor
* @param center
* @param radius
*/
R3.API.Sphere = function (
center,
radius
) {
if (R3.Utils.UndefinedOrNull(center)) {
center = new R3.API.Vector3(0,0,0);
}
this.center = center;
if (R3.Utils.UndefinedOrNull(radius)) {
radius = 1;
}
this.radius = radius;
};