Every skin must support a ray/segment intersection test - operates on the new value of the primitives

Namespace: JigLibX.Collision
Assembly: JigLibX (in JigLibX.dll) Version: 0.3.1.0

Syntax

C#
public bool SegmentIntersect(
	out float frac,
	out Vector3 pos,
	out Vector3 normal,
	Segment seg
)
Visual Basic
Public Function SegmentIntersect ( _
	<OutAttribute> ByRef frac As Single, _
	<OutAttribute> ByRef pos As Vector3, _
	<OutAttribute> ByRef normal As Vector3, _
	seg As Segment _
) As Boolean
Visual C++
public:
bool SegmentIntersect(
	[OutAttribute] float% frac, 
	[OutAttribute] Vector3% pos, 
	[OutAttribute] Vector3% normal, 
	Segment seg
)

Parameters

frac
Type: System..::..Single%

[Missing <param name="frac"/> documentation for "M:JigLibX.Collision.CollisionSkin.SegmentIntersect(System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3@,JigLibX.Geometry.Segment)"]

pos
Type: Vector3%

[Missing <param name="pos"/> documentation for "M:JigLibX.Collision.CollisionSkin.SegmentIntersect(System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3@,JigLibX.Geometry.Segment)"]

normal
Type: Vector3%

[Missing <param name="normal"/> documentation for "M:JigLibX.Collision.CollisionSkin.SegmentIntersect(System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3@,JigLibX.Geometry.Segment)"]

seg
Type: JigLibX.Geometry..::..Segment

[Missing <param name="seg"/> documentation for "M:JigLibX.Collision.CollisionSkin.SegmentIntersect(System.Single@,Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3@,JigLibX.Geometry.Segment)"]

Return Value

bool

See Also