Back to class index
| Plane::ClosestPointSyntaxfloat3 Plane::ClosestPoint(const float3 &point) const; [1 line of code]float3 Plane::ClosestPoint(const Ray &ray) const; [9 lines of code] float3 Plane::ClosestPoint(const LineSegment &lineSegment) const; [12 lines of code] Computes the closest point on this plane to the given object. If the other object intersects this plane, this function will return an arbitrary point inside the region of intersection. Performancefloat3 Plane::ClosestPoint(const float3 &point) const8.21nsecs/call ≈ 121.8M calls/second ≈ 2.03M calls/frame (@ 60fps). 24.632nsecs/call ≈ 40.6M calls/second ≈ 676.64k calls/frame (@ 60fps). 0.078μsecs/call ≈ 12.82M calls/second ≈ 213.68k calls/frame (@ 60fps). See AlsoWork in progress:Todo: in float3 Plane::ClosestPoint(const Ray &ray) const: Output parametric d as well. Todo: in float3 Plane::ClosestPoint(const LineSegment &lineSegment) const: Output parametric d as well. Leave a Comment |