Struct Ray
Structure defining a half-line in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length). For an infinite line, refer to Line.
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public struct Ray
Constructors
| Improve this Doc View SourceRay(Point, Vector)
Initialises a new instance of the Ray structure by defining its origin and axis.
Declaration
public Ray(Point start, Vector axis)
Parameters
Type | Name | Description |
---|---|---|
Point | start | |
Vector | axis | Axis of the Ray. |
Ray(Ray)
Declaration
public Ray(Ray ray)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | Ray to copy. |
Properties
| Improve this Doc View SourceAxis
Gets the axis of the current Ray.
Declaration
public Vector Axis { get; set; }
Property Value
Type | Description |
---|---|
Vector |
StartPoint
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourceEquals(Ray)
Declaration
public bool Equals(Ray other)
Parameters
Type | Name | Description |
---|---|---|
Ray | other | Ray to compare with. |
Returns
Type | Description |
---|---|
Boolean | true if the two Ray are equal, false otherwise. |
Remarks
| Improve this Doc View SourceEquals(Object)
Structure defining a half-line in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length). For an infinite line, refer to Line.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Flip()
Declaration
public void Flip()
GetHashCode()
Structure defining a half-line in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length). For an infinite line, refer to Line.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
PointAt(Double)
Evaluates the current Ray at the given length parameter.
Declaration
public Point PointAt(double lengthParameter)
Parameters
Type | Name | Description |
---|---|---|
Double | lengthParameter | Value of the length parameter. |
Returns
Type | Description |
---|---|
Point |
ToString()
Structure defining a half-line in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length). For an infinite line, refer to Line.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |