Class BaseCurve
Represents a generic curve. This class is abstract and all curve classes should inherit from it.
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public abstract class BaseCurve : object
Constructors
| Improve this Doc View SourceBaseCurve()
Initializes a new instance of the BaseCurve class.
Declaration
protected BaseCurve()
Properties
| Improve this Doc View SourceDomain
Gets or sets the curve's domain.
Declaration
public Interval Domain { get; set; }
Property Value
Type | Description |
---|---|
Interval |
IsValid
Gets a value indicating whether the curve is valid.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if Valid. |
Length
Declaration
public double Length { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceBinormalAt(Double)
Compute a binormal vector along the curve at a specified parameter.
Declaration
public abstract Vector3d BinormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Binormal vector at the parameter specified. |
CheckValidity()
Checks the validity of the curve.
Declaration
public abstract bool CheckValidity()
Returns
Type | Description |
---|---|
System.Boolean | True if valid. |
ComputeLength()
Computes the length of the curve.
Declaration
protected abstract double ComputeLength()
Returns
Type | Description |
---|---|
System.Double | Length as number. |
FrameAt(Double)
Compute the perpendicular frame along the curve at a specified parameter.
Declaration
public abstract Plane FrameAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Plane | Perpendicular plane at the parameter specified. |
NormalAt(Double)
Compute normal vector along the curve at a specified parameter.
Declaration
public abstract Vector3d NormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Normal vector at the parameter specified. |
PointAt(Double)
Compute a point along the curve at a specified parameter.
Declaration
public abstract Point3d PointAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Point3d | Point at the parameter specified. |
TangentAt(Double)
Compute the tangent vector along the curve at a specified parameter.
Declaration
public abstract Vector3d TangentAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Tangent vector at the parameter specified. |