Ray t

From Valve Developer Community
Revision as of 08:28, 10 April 2011 by Stoopdapoop (talk | contribs) (Created page with '{{wrongtitle|Ray_t}} A structure that has a starting point, a direction and a length that represents a line that has a starting point, and extends infinitely in one direction. …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Wrongtitle A structure that has a starting point, a direction and a length that represents a line that has a starting point, and extends infinitely in one direction.


	VectorAligned  m_Start;	// starting point, centered within the extents
	VectorAligned  m_Delta;	// direction + length of the ray
	VectorAligned  m_StartOffset;	// Add this to m_Start to get the actual ray start
	VectorAligned  m_Extents;	// Describes an axis aligned box extruded along a ray
	bool	m_IsRay;	// are the extents zero?
	bool	m_IsSwept;	// is delta != 0?

See Also

http://en.wikipedia.org/wiki/Line_(mathematics)#Ray