import {Solid} from "../../../core/solids/Solid.js";
import {BallShape} from "../shapes/ball/BallShape.js";
/**
* @class
*
* @classdesc
* S2xE ball
*/
export class Ball extends Solid {
/**
* Constructor
* @param {Isometry|Point|Vector} location - the location of the ball
* @param {number} radius - the radius of the ball
* @param {Material} material - the material of the ball
* @param {PTMaterial} ptMaterial - material for path tracing (optional)
*/
constructor(location, radius, material, ptMaterial = undefined) {
const shape = new BallShape(location, radius);
super(shape, material, ptMaterial);
}
}