Represents a segment as part of a GraphicsPath.
More...
Represents a segment as part of a GraphicsPath.
Definition at line 28 of file Segment.cs.
◆ Clone()
abstract Segment VectSharp.Segment.Clone |
( |
| ) |
|
|
pure virtual |
◆ GetLinearisationTangents()
abstract IEnumerable<Point> VectSharp.Segment.GetLinearisationTangents |
( |
Point? |
previousPoint, |
|
|
double |
resolution |
|
) |
| |
|
pure virtual |
Gets the tanget at the points at which the segment would be linearised.
- Parameters
-
previousPoint | The point from which the Segment starts (i.e. the endpoint of the previous Segment). |
resolution | The absolute length between successive samples in curve segments. |
- Returns
- A collection of tangents at the points in which the segment would be linearised.
◆ GetPointAt()
abstract Point VectSharp.Segment.GetPointAt |
( |
Point |
previousPoint, |
|
|
double |
position |
|
) |
| |
|
pure virtual |
Gets the point on the Segment at the specified (relative) position ).
- Parameters
-
previousPoint | The point from which the Segment starts (i.e. the endpoint of the previous Segment). |
position | The relative position on the Segment (0 is the start of the Segment, 1 is the end of the Segment). |
- Returns
- The point at the specified position.
◆ GetTangentAt()
abstract Point VectSharp.Segment.GetTangentAt |
( |
Point |
previousPoint, |
|
|
double |
position |
|
) |
| |
|
pure virtual |
Gets the tangent to the Segment at the specified (relative) position ).
- Parameters
-
previousPoint | The point from which the Segment starts (i.e. the endpoint of the previous Segment). |
position | The relative position on the Segment (0 is the start of the Segment, 1 is the end of the Segment). |
- Returns
- The tangent to the point at the specified position.
◆ Linearise()
abstract IEnumerable<Segment> VectSharp.Segment.Linearise |
( |
Point? |
previousPoint, |
|
|
double |
resolution |
|
) |
| |
|
pure virtual |
Transform the segment into a series of linear segments. Segments that are already linear are not changed.
- Parameters
-
previousPoint | The point from which the Segment starts (i.e. the endpoint of the previous Segment). |
resolution | The absolute length between successive samples in curve segments. |
- Returns
- A collection of linear segments that approximate the current segment.
◆ Measure()
abstract double VectSharp.Segment.Measure |
( |
Point |
previousPoint | ) |
|
|
pure virtual |
Computes the length of the Segment.
- Parameters
-
previousPoint | The point from which the Segment starts (i.e. the endpoint of the previous Segment). |
- Returns
- The length of the segment.
◆ Transform()
abstract IEnumerable<Segment> VectSharp.Segment.Transform |
( |
Func< Point, Point > |
transformationFunction | ) |
|
|
pure virtual |
Applies an arbitrary transformation to all of the points of the Segment.
- Parameters
-
transformationFunction | An arbitrary transformation function. |
- Returns
- A collection of Segments that have been transformed according to the transformationFunction .
◆ Point
virtual Point VectSharp.Segment.Point |
|
get |
◆ Points
Point [] VectSharp.Segment.Points |
|
get |
◆ Type
The documentation for this class was generated from the following file: