Class SplineVertex
Represents a control point of a Spline.
Inheritance
Implements
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class SplineVertex : ICloneable
Constructors
| Improve this Doc View SourceSplineVertex(Vector2)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(Vector2 position)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | Spline control point Vector2 coordinates. |
SplineVertex(Vector2, Double)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(Vector2 position, double weight)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | Spline control point Vector2 coordinates. |
| System.Double | weight | Weight of the spline control point (default 1.0). |
SplineVertex(Vector3)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(Vector3 position)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | Spline control point Vector3 coordinates. |
SplineVertex(Vector3, Double)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(Vector3 position, double weight)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | Spline control point Vector3 coordinates. |
| System.Double | weight | Weight of the spline control point (default 1.0). |
SplineVertex(Double, Double, Double)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | Control point x coordinate. |
| System.Double | y | Control point y coordinate. |
| System.Double | z | Control point z coordinate. |
SplineVertex(Double, Double, Double, Double)
Initializes a new instance of the SplineVertex class.
Declaration
public SplineVertex(double x, double y, double z, double w)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | Control point x coordinate. |
| System.Double | y | Control point y coordinate. |
| System.Double | z | Control point z coordinate. |
| System.Double | w | Control point weight (default 1.0). |
Properties
| Improve this Doc View SourcePosition
Get or sets the spline control point Vector3 coordinates.
Declaration
public Vector3 Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Weight
Gets or sets the weight of the spline control point.
Declaration
public double Weight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceClone()
Creates a new Spline that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new Spline that is a copy of this instance. |
ToString()
Obtains a string that represents the spline vertex.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string text. |
Overrides
ToString(IFormatProvider)
Obtains a string that represents the spline vertex.
Declaration
public string ToString(IFormatProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IFormatProvider | provider | An IFormatProvider interface implementation that supplies culture-specific formatting information. |
Returns
| Type | Description |
|---|---|
| System.String | A string text. |