ドキュメント

Unity Engine

Unity Engine

FindBezierLineIntersections(BezierSegment, Vector2, Vector2)

Find the intersections (up to three) between a line and a curve segment.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static float[] FindBezierLineIntersections(BezierSegment segment, Vector2 p0, Vector2 p1)

Parameters

The curve segment

The first point

The second point

Returns

Type

Description

float[]Returns the Bezier's 't' parametric values where the line p0-p1 intersects the segment, up to 3 values