6 #include "VectorMath.h"
15 : m_rayOrigin(v3::Zero())
16 , m_rayDirection(v3::Zero())
17 , m_skewedRayParamScale(0.f)
18 , m_pCollisionBvh(NULL)
20 , m_bIntersects(
false)
21 , m_intersectionParam(0.f)
25 : m_rayOrigin(rayOrigin)
26 , m_rayDirection(rayDirection)
27 , m_skewedRayParamScale(skewedRayParamScale)
28 , m_pCollisionBvh(&collisionBvh)
30 , m_bIntersects(intersects)
31 , m_intersectionParam(intersectionParam)
35 const v3& RayOrigin()
const {
return m_rayOrigin; }
36 const v3& RayDirection()
const {
return m_rayDirection; }
37 float SkewedRayParamScale()
const {
return m_skewedRayParamScale; }
38 const CollisionBvh& Bvh()
const {
return *m_pCollisionBvh; }
40 bool Intersects()
const {
return m_bIntersects; }
41 float IntersectionParam()
const {
return m_intersectionParam; }
45 float m_skewedRayParamScale;
49 float m_intersectionParam;