ComponentOne Bitmap for UWP
ComputePointAtLength(Single,Single,Point2F) Method

C1.UWP.DX Assembly > C1.Util.DX.Direct2D Namespace > Geometry Class > ComputePointAtLength Method : ComputePointAtLength(Single,Single,Point2F) Method
The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry.
The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution.
Whenthis method returns, contains a reference to the tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter.
Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.
Syntax
'Declaration
 
Public Overloads Function ComputePointAtLength( _
   ByVal length As System.Single, _
   ByVal flatteningTolerance As System.Single, _
   ByRef unitTangentVector As Point2F _
) As Point2F
public Point2F ComputePointAtLength( 
   System.float length,
   System.float flatteningTolerance,
   out Point2F unitTangentVector
)

Parameters

length
The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry.
flatteningTolerance
The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution.
unitTangentVector
Whenthis method returns, contains a reference to the tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter.

Return Value

The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values.
See Also

Reference

Geometry Class
Geometry Members
Overload List