Click or drag to resize
DigitalRuneLine Structure
Defines a line.

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

The Line type exposes the following members.

Constructors
  NameDescription
Public methodLine(LineShape)
Initializes a new instance of Line from a LineShape.
Public methodLine(Vector3F, Vector3F)
Initializes a new instance of Line from a point and a direction.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Tests if two Lines are equal.
Public operatorStatic memberInequality
Tests if two Lines are different.
Top
Fields
  NameDescription
Public fieldDirection
The normalized direction vector.
Public fieldPointOnLine
A point on the line.
Top
Remarks

This is a lightweight structure. To define a line shape for IGeometricObject use LineShape.

Two Lines are considered as equal if the fields PointOnLine and Direction are equal.

See Also