ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 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.

In This Topic
    ComputePointAtLength(Single,Single,Point2F) Method
    In This Topic
    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 Single, _
       ByVal flatteningTolerance As Single, _
       ByRef unitTangentVector As Point2F _
    ) As Point2F
    public Point2F ComputePointAtLength( 
       float length,
       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