GdiExtensionMethodsShortenLineSegment Method |
Shortens a line segment and returns the line points of the shortened segment.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Tuple<PointF, PointF> ShortenLineSegment(
PointF P1,
PointF P2,
float t0,
float t1
)
Parameters
- P1 PointF
- Start point p1 of the line segment.
- P2 PointF
- End point p2 of the line segment.
- t0 Single
- Value in the range 0..1 to indicate the shortening at the beginning of the segment.
- t1 Single
- Value in the range 0..1 to indicate the shortening at the beginning of the segment. This value must be greater than t0.
Return Value
TuplePointF,
PointFThe points of the shortened line segment.
See Also