Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Geometry Class / ComputePointAtLength Method / ComputePointAtLength(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.
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,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 System.Single, _
       ByRef unitTangentVector As Point2F _
    ) As Point2F
    public Point2F ComputePointAtLength( 
       System.float length,
       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.
    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