Back to class index
| Line::ToLineSegmentSyntaxLineSegment Line::ToLineSegment(float d) const; [4 lines of code]Converts this Line to a LineSegment. ParametersfloatdSpecifies the position of the other endpoint along this Line. This parameter may be negative. Return ValueA LineSegment with point a at pos, and point b at pos + d * dir. See AlsoSyntaxLineSegment Line::ToLineSegment(float dStart, float dEnd) const; [4 lines of code]Converts this Line to a LineSegment. ParametersfloatdStartSpecifies the position of the first endpoint along this Line. This parameter may be negative, in which case the starting point lies to the opposite direction of the Line. floatdEndSpecifies the position of the second endpoint along this Line. This parameter may also be negative. Return ValueA LineSegment with point a at pos + dStart * dir, and point b at pos + dEnd * dir. See Also |