ドキュメント

Unity Engine

Unity Engine

BuildRectangleContour(Rect, Vector2, Vector2, Vector2, Vector2)

Builds a BezierContour from a Rectangle.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public static BezierContour BuildRectangleContour(Rect rect, Vector2 radiusTL, Vector2 radiusTR, Vector2 radiusBR, Vector2 radiusBL)

Parameters

rect

The rectangle to build the contour from

radiusTL

The top-left radius of the rectangle

radiusTR

The top-right radius of the rectangle

radiusBR

The bottom-right radius of the rectangle

radiusBL

The bottom-left radius of the rectangle

Returns

Type

Description

BezierContourA BezierContour that follows the rectangle contour