16 #include "physxManager.h" 26 nassertv_always(!origin.
is_nan());
50 nassertv_always(!direction.
is_nan());
78 nassertv_always(length > 0.0f);
static NxVec3 point3_to_nxVec3(const LPoint3f &p)
Converts from LPoint3f to NxVec3.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
void set_length(float length)
Sets the ray length.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
LVector3f get_direction() const
Returns the ray direction.
float get_length() const
Returns the ray length.
void set_origin(const LPoint3f &origin)
Sets the ray origin.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
LPoint3f get_origin() const
Returns the ray origin.
void set_direction(const LVector3f &direction)
Set the ray direction.