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