Click or drag to resize
DigitalRuneRay Structure
Defines a ray.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
[SerializableAttribute]
public struct Ray : IEquatable<Ray>

The Ray type exposes the following members.

Constructors
  NameDescription
Public methodRay(RayShape)
Initializes a new instance of Ray from a RayShape.
Public methodRay(Vector3F, Vector3F, Single)
Initializes a new instance of Line with the given origin and direction.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Tests if two Rays are equal.
Public operatorStatic memberInequality
Tests if two Rays are different.
Top
Fields
  NameDescription
Public fieldDirection
The normalized direction of the ray.
Public fieldLength
The finite length of the ray.
Public fieldOrigin
The origin of the ray.
Top
Remarks

This is a lightweight structure. To define a ray shape for an IGeometricObject use RayShape.

Two Rays are considered as equal if Origin, Direction and Length are equal.

See Also