Difference between revisions of "Ray t"

From Valve Developer Community
Jump to: navigation, search
(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. …')
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wrongtitle|Ray_t}}
+
{{DISPLAYTITLE: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.
 
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.
  
  
 +
== Members ==
 
<source lang=cpp>
 
<source lang=cpp>
 
VectorAligned  m_Start; // starting point, centered within the extents
 
VectorAligned  m_Start; // starting point, centered within the extents
Line 16: Line 17:
  
 
[[Category:Structures]]
 
[[Category:Structures]]
 +
[[Category:Helpers]]

Latest revision as of 23:27, 4 December 2011

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.


Members

	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