Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSPointがNSBezierPath内にあるかどうかを確認する方法があるかどうか疑問に思いました。好き:
NSPointInRect(aPoint,aRect)
しかし、BezierPathを使用します。
よろしくお願いします、ベン
はい。この方法を参照してください。
containsPoint:
レシーバーに指定されたポイントが含まれているかどうかを示すブール値を返します。
- (BOOL)containsPoint:(NSPoint)aPoint
パラメータaPointパスオブジェクトの座標系で指定された、パスに対してテストするポイント。