[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.ComputePointAtLength

ComputePointAtLength Method

ComputePointAtLength(float, out Point2F)

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.

Declaration
public Point2F ComputePointAtLength(float length, out Point2F unitTangentVector)
Parameters
Type Name Description
float 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.

Point2F 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.

Returns
Type Description
Point2F

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

ComputePointAtLength(float, float, out Point2F)

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.

Declaration
public Point2F ComputePointAtLength(float length, float flatteningTolerance, out Point2F unitTangentVector)
Parameters
Type Name Description
float 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.

float 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.

Point2F 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.

Returns
Type Description
Point2F

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

ComputePointAtLength(float, Matrix3x2?, float, out Point2F)

HRESULT ID2D1Geometry::ComputePointAtLength([In] float length,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out, Optional] D2D_POINT_2F* point,[Out, Optional] D2D_POINT_2F* unitTangentVector)

Declaration
public Point2F ComputePointAtLength(float length, Matrix3x2? worldTransform, float flatteningTolerance, out Point2F unitTangentVector)
Parameters
Type Name Description
float length
Matrix3x2? worldTransform
float flatteningTolerance
Point2F unitTangentVector
Returns
Type Description
Point2F