DistanceToPoint returns the distance from the sphere surface to the specified point.
(point *Vector3)
| 76 | |
| 77 | // DistanceToPoint returns the distance from the sphere surface to the specified point. |
| 78 | func (s *Sphere) DistanceToPoint(point *Vector3) float32 { |
| 79 | |
| 80 | return point.DistanceTo(&s.Center) - s.Radius |
| 81 | } |
| 82 | |
| 83 | // IntersectSphere returns if other sphere intersects this one. |
| 84 | func (s *Sphere) IntersectSphere(other *Sphere) bool { |
nothing calls this directly
no test coverage detected