Back to class index
| Line::GetPointSyntaxfloat4 Line::GetPoint(float distance) const; [5 lines of code]Gets a point along the line at the given distance. Use this function to convert a 1D parametric point along the Line to a 3D point in the linear space. ParametersfloatdistanceThe point to compute. GetPoint(0) will return pos. GetPoint(t) will return a point at distance |t| from pos, towards the direction specified by dir. If a negative value is specified, a point towards the direction -dir is returned. Return Valuepos + distance * dir. See Also |