Is there a way to measure how close a point is, to an SkPath or SkPoints?

39 views
Skip to first unread message

craste...@gmail.com

unread,
May 23, 2025, 5:08:04 PM5/23/25
to skia-discuss
Is there a way to measure how close a point is, to an SkPath or SkPoints?

craste...@gmail.com

unread,
May 25, 2025, 9:20:03 PM5/25/25
to skia-discuss
Could it involve  getPosTan()?

bool SkPathMeasure::getPosTan(SkScalar distance, 
                                                            SkPoint* position, 
                                                            SkVector* tangent) ;

If so, what is the variables mean? Distance from what? How does it know what it is making a tangent from?

Reply all
Reply to author
Forward
0 new messages