Back to class index
| LineSegment::ClosestPointSyntaxfloat3 LineSegment::ClosestPoint(const float3 &point, float *d=0) const; [8 lines of code]float3 LineSegment::ClosestPoint(const Ray &other, float *d=0, float *d2=0) const; [12 lines of code] float3 LineSegment::ClosestPoint(const Line &other, float *d=0, float *d2=0) const; [11 lines of code] float3 LineSegment::ClosestPoint(const LineSegment &other, float *d=0, float *d2=0) const; [12 lines of code] Computes the closest point on this line segment to the given object. Parametersfloat *d [out]If specified, this parameter receives the normalized distance along this line segment which specifies the closest point on this line segment to the specified point. This pointer may be null.float *d2 [out]If specified, this parameter receives the (normalized, in case of line segment) distance along the other line object which specifies the closest point on that line to this line segment. This pointer may be null. Return ValueThe closest point on this line segment to the given object. Performancefloat3 LineSegment::ClosestPoint(const float3 &point, float *d=0) const16.421nsecs/call ≈ 60.9M calls/second ≈ 1.01M calls/frame (@ 60fps). 0.053μsecs/call ≈ 18.74M calls/second ≈ 312.3k calls/frame (@ 60fps). 0.053μsecs/call ≈ 18.74M calls/second ≈ 312.3k calls/frame (@ 60fps). 0.053μsecs/call ≈ 18.74M calls/second ≈ 312.3k calls/frame (@ 60fps). See AlsoLeave a Comment |