Ray t: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎top: clean up, added deadend tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Dead end|date=January 2024}}
{{DISPLAYTITLE: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 ==
== Members ==
Line 13: Line 14:
</source>
</source>


== See Also ==
== See also ==
http://en.wikipedia.org/wiki/Line_(mathematics)#Ray
http://en.wikipedia.org/wiki/Line_(mathematics)#Ray


[[Category:Structures]]
[[Category:Structures]]
[[Category:Helpers]]
[[Category:Helpers]]

Latest revision as of 10:09, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024


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