SetFromBox sets the center and radius of this sphere to surround given box
(box Box3)
| 30 | |
| 31 | // SetFromBox sets the center and radius of this sphere to surround given box |
| 32 | func (s *Sphere) SetFromBox(box Box3) { |
| 33 | s.Center = box.Center() |
| 34 | s.Radius = 0.5 * box.Size().Length() |
| 35 | } |
| 36 | |
| 37 | // SetFromPoints sets this sphere from the specified points array and optional center. |
| 38 | func (s *Sphere) SetFromPoints(points []Vector3, optCenter *Vector3) { |
no test coverage detected