Back to class index
LineSegment[Class Summary]
a
b
ctor (+3 overloads)
GetPoint(d)[const]
CenterPoint()[const]
Reverse()
Dir()[const]
AnyPointFast()[const]
ExtremePoint(direction)[const] (+1 overload)
Translate(offset)
Transform(transform) (+3 overloads)
Length()[const]
LengthSq()[const]
IsFinite()[const]
Equals(...)[const]
BitEquals(other)[const]
Contains(...)[const] (+1 overload)
ClosestPoint(point)[const] (+10 overloads)
Distance(point)[const] (+13 overloads)
DistanceSq(point)[const] (+1 overload)
Intersects(plane)[const] (+12 overloads)
IntersectsDisc(disc)[const]
ToRay()[const]
ToLine()[const]
ProjectToAxis(...)[const]
ToString()[const]
SerializeToString()[const]
SerializeToCodeString()[const]
FromString(str,outEndStr)[static] (+1 overload)

LineSegment::ClosestPoint

Syntax

float4 LineSegment::ClosestPoint(const float4 &point) const; [1 line of code]
float4 LineSegment::ClosestPoint(const float4 &point, float &d) const; [6 lines of code]
float4 LineSegment::ClosestPoint(const Ray &other) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const Ray &other, float &d) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const Ray &other, float &d, float &d2) const; [5 lines of code]
float4 LineSegment::ClosestPoint(const Line &other) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const Line &other, float &d) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const Line &other, float &d, float &d2) const; [18 lines of code]
float4 LineSegment::ClosestPoint(const LineSegment &other) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const LineSegment &other, float &d) const; [1 lines of code]
float4 LineSegment::ClosestPoint(const LineSegment &other, float &d, float &d2) const; [80 lines of code]

Computes the closest point on this line segment to the given object.

Return Value

The closest point on this line segment to the given object.

See Also

Contains(), Distance(), Intersects().