Back to class index
| Line::LineSyntaxLine::Line(); [1 line of code]The default constructor does not initialize any members of this class. This means that the values of the members pos and dir are undefined after creating a new Line using this default constructor. Remember to assign to them before use. See AlsoSyntaxLine::Line(const float4 &pos, const float4 &dir); [5 lines of code]Constructs a new line by explicitly specifying the member variables. Parametersconst float4 &posThe origin position of the line. const float4 &dirThe direction of the line. This vector must be normalized, this function will not normalize the vector for you (for performance reasons). See AlsoSyntaxLine::Line(const Ray &ray); [5 lines of code]This conversion simply copies the members pos and dir over from the given Ray to this Line. This means that the new Line starts at the same position, but extends to two directions in space, instead of one. See AlsoSyntaxLine::Line(const LineSegment &lineSegment); [4 lines of code]Converts a LineSegment to a Line. This constructor sets pos = lineSegment.a, and dir = (lineSegment.b - lineSegment.a).Normalized(). See Also |