Back to class index
| Capsule::DistanceSyntaxfloat Capsule::Distance(const float4 &point) const; [4 lines of code]float Capsule::Distance(const Plane &plane) const; [4 lines of code] float Capsule::Distance(const Sphere &sphere) const; [4 lines of code] float Capsule::Distance(const Ray &ray) const; [4 lines of code] float Capsule::Distance(const Line &line) const; [4 lines of code] float Capsule::Distance(const LineSegment &lineSegment) const; [4 lines of code] float Capsule::Distance(const Capsule &capsule) const; [4 lines of code] Computes the distance between this capsule 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 Capsule::Distance(const float4 &point) const: Add Distance(Triangle/Polygon/Circle/Disc/Capsule). |