29#ifndef _ROUND_SEGMENT_H_
30#define _ROUND_SEGMENT_H_
44 bool IntersectP(
const RAY& aRay,
float aMaxDistance )
const override;
75 float aOuterRadius,
float aZmin,
float aZmax );
90 float m_inner_radius_squared;
91 float m_inner_inv_radius;
93 float m_outer_radius_squared;
94 float m_outer_inv_radius;
96 float m_seglen_over_two_squared;
virtual bool Intersects(const BBOX_3D &aBBox) const =0
virtual bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const =0
bool Intersects(const BBOX_3D &aBBox) const override
float m_seglen_over_two_squared
SFVEC3F m_plane_dir_right
SFVEC3F GetDiffuseColor(const HITINFO &aHitInfo) const override
bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const override
bool IntersectP(const RAY &aRay, float aMaxDistance) const override
void SetColor(SFVEC3F aObjColor)
Manage a bounding box defined by two SFVEC3F min max points.
Stores the hit information of a ray with a point on the surface of a object.