Back to class index
| Sphere::DistanceSyntaxfloat Sphere::Distance(const float4 &point) const; [4 lines of code]float Sphere::Distance(const Sphere &sphere) const; [4 lines of code] float Sphere::Distance(const Capsule &capsule) const; [4 lines of code] float Sphere::Distance(const AABB &aabb) const; [4 lines of code] float Sphere::Distance(const OBB &obb) const; [4 lines of code] float Sphere::Distance(const Plane &plane) const; [4 lines of code] float Sphere::Distance(const Triangle &triangle) const; [4 lines of code] float Sphere::Distance(const Ray &ray) const; [4 lines of code] float Sphere::Distance(const Line &line) const; [4 lines of code] float Sphere::Distance(const LineSegment &lineSegment) const; [4 lines of code] Returns the distance between this sphere and the given object. This function finds the nearest pair of points on this and the given object, and computes their distance. If the two objects intersect, or one object is contained inside the other, the returned distance is zero. See AlsoWork in progress:Todo: in float Sphere::Distance(const float4 &point) const: Add Sphere::Distance(Polygon/Circle/Disc/Frustum/Polyhedron). |