Skip to main content

OH_Drawing_PathGetPositionTangent

Function OH_Drawing_PathGetPositionTangent 

Source
pub unsafe extern "C" fn OH_Drawing_PathGetPositionTangent(
    path: *mut OH_Drawing_Path,
    forceClosed: bool,
    distance: f32,
    position: *mut OH_Drawing_Point2D,
    tangent: *mut OH_Drawing_Point2D,
) -> bool
Expand description

@brief Gets the position and tangent of the distance from the starting position of the Path.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param path Indicates the pointer to an OH_Drawing_Path object. @param forceClosed Whether to close the Path. @param distance The distance from the start of the Path. @param position Sets to the position of distance from the starting position of the Path. @param tangent Sets to the tangent of distance from the starting position of the Path. @return Returns true if succeeded; returns false otherwise. @since 12 @version 1.0