Click or drag to resize
DigitalRuneRayShape Constructor (Vector3F, Vector3F, Single)
Initializes a new instance of the Line class with the given origin, direction and length.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public RayShape(
	Vector3F origin,
	Vector3F direction,
	float length
)

Parameters

origin
Type: DigitalRune.Mathematics.AlgebraVector3F
The origin.
direction
Type: DigitalRune.Mathematics.AlgebraVector3F
The direction.
length
Type: SystemSingle
The finite length.
Exceptions
ExceptionCondition
ArgumentExceptiondirection is not normalized.
ArgumentOutOfRangeExceptionlength is ≤ 0 or infinite.
See Also