Class Ray2d
Represents an infinite 2-dimensional ray.
Inheritance
System.Object
Ray2d
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Ray2d : object
Constructors
| Improve this Doc View SourceRay2d(Point2d, Vector2d)
Initializes a new instance of the Ray2d class.
Declaration
public Ray2d(Point2d origin, Vector2d direction)
Parameters
Type | Name | Description |
---|---|---|
Point2d | origin | Origin point. |
Vector2d | direction | Direction vector. |
Properties
| Improve this Doc View SourceDirection
Gets or sets the direction of the ray as a unit vector.
Declaration
public Vector2d Direction { get; set; }
Property Value
Type | Description |
---|---|
Vector2d | Direction vector. |
Origin
Gets or sets the origin of the ray.
Declaration
public Point2d Origin { get; set; }
Property Value
Type | Description |
---|---|
Point2d | Origin point. |