[]
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.
public Point2F ComputePointAtLength(float length, out Point2F unitTangentVector)
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. |
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. |
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.
public Point2F ComputePointAtLength(float length, float flatteningTolerance, out Point2F unitTangentVector)
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. |
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. |
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)
public Point2F ComputePointAtLength(float length, Matrix3x2? worldTransform, float flatteningTolerance, out Point2F unitTangentVector)
Type | Name | Description |
---|---|---|
float | length | |
Matrix3x2? | worldTransform | |
float | flatteningTolerance | |
Point2F | unitTangentVector |
Type | Description |
---|---|
Point2F |