Back to class index
| Polyhedron::DistanceSyntaxfloat Polyhedron::Distance(const float4 &point) const; [5 lines of code]Returns the distance between this polyhedron 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. Note This function assumes that this polyhedron is closed and the edges are not self-intersecting. See AlsoWork in progress:Todo: in float Polyhedron::Distance(const float4 &point) const: Add Distance(Line/LineSegment/Ray/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). |