Class Line
Represents a 3D Line.
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Line : BaseCurve
Constructors
| Improve this Doc View SourceLine(Point3d, Point3d)
Initializes a new instance of the Line class from two points.
Declaration
public Line(Point3d startPoint, Point3d endPoint)
Parameters
Type | Name | Description |
---|---|---|
Point3d | startPoint | Start point. |
Point3d | endPoint | End point. |
Line(Point3d, Vector3d, Double)
Initializes a new instance of the Line class from an origin point, a direction and a specified length.
Declaration
public Line(Point3d origin, Vector3d direction, double length)
Parameters
Type | Name | Description |
---|---|---|
Point3d | origin | Start point of the line. |
Vector3d | direction | Direction of the line (length will not be taken into account). |
System.Double | length | Length of the line. |
Properties
| Improve this Doc View SourceEndPoint
Gets or sets the line's end point.
Declaration
public Point3d EndPoint { get; set; }
Property Value
Type | Description |
---|---|
Point3d |
StartPoint
Gets or sets the lines's start point.
Declaration
public Point3d StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point3d |
Methods
| Improve this Doc View SourceBinormalAt(Double)
Computes the bi-normal vector at the given parameter.
Declaration
public override Vector3d BinormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter of the bi-normal vector. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
Vector3d | Bi-normal vector at specified parameter. |
Overrides
| Improve this Doc View SourceCheckValidity()
Checks if line is valid.
Declaration
public override bool CheckValidity()
Returns
Type | Description |
---|---|
System.Boolean | True if valid. |
Overrides
| Improve this Doc View SourceComputeLength()
Computes the length of the line.
Declaration
protected override double ComputeLength()
Returns
Type | Description |
---|---|
System.Double | Line length. |
Overrides
| Improve this Doc View SourceFrameAt(Double)
Computes the perpendicular frame at the given parameter.
Declaration
public override Plane FrameAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter of the frame. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
Plane | Frame at specified parameter. |
Overrides
| Improve this Doc View SourceNormalAt(Double)
Computes the normal at the given parameter.
Declaration
public override Vector3d NormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter of the normal vector. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
Vector3d | Normal vector at specified parameter. |
Overrides
| Improve this Doc View SourcePointAt(Double)
Computes thepoint at the given parameter.
Declaration
public override Point3d PointAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter of the point. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
Point3d | Point at specified parameter. |
Overrides
| Improve this Doc View SourceTangentAt(Double)
Computes the tangent at the given parameter.
Declaration
public override Vector3d TangentAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter of the tangent. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
Vector3d | Tangent at specified parameter. |
Overrides
Operators
| Improve this Doc View SourceExplicit(Line to Vector3d)
Explicitly converts a line to it's vector representation.
Declaration
public static explicit operator Vector3d(Line line)
Parameters
Type | Name | Description |
---|---|---|
Line | line | Line to convert. |
Returns
Type | Description |
---|---|
Vector3d | Vector defining the line direction and length. |