C# Class Cyjb.Projects.JigsawGame.Shape.JigsawStandardCircleShape

拼图的标准圆形。
Inheritance: JigsawShape
Datei anzeigen Open project: CYJB/Cyjb.Projects.JigsawGame

Public Methods

Method Description
JigsawStandardCircleShape ( ) : System

初始化 JigsawStandardCircleShape 的新实例。

Protected Methods

Method Description
AddBorder ( Path path, System.Vector2 startPoint, System.Vector2 endPoint, bool border, float randoms ) : void

向拼图碎片的路径中添加一条边,路径的当前节点总是在起始点。

Method Details

AddBorder() protected method

向拼图碎片的路径中添加一条边,路径的当前节点总是在起始点。
protected AddBorder ( Path path, System.Vector2 startPoint, System.Vector2 endPoint, bool border, float randoms ) : void
path Path 路径。
startPoint System.Vector2 边的起始点。
endPoint System.Vector2 边的结束点。
border bool 与该条边相关的一组随机数,范围都是 [0, 1)。
randoms float 该边的凹凸性。
return void

JigsawStandardCircleShape() public method

初始化 JigsawStandardCircleShape 的新实例。
public JigsawStandardCircleShape ( ) : System
return System