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

拼图的标准平滑形状。
Inheritance: JigsawShape
Exibir arquivo Open project: CYJB/Cyjb.Projects.JigsawGame

Public Methods

Method Description
JigsawStandardSmoothShape ( ) : SharpDX

初始化 JigsawStandardSmoothShape 的新实例。

Protected Methods

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

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

Method Details

AddBorder() protected method

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

JigsawStandardSmoothShape() public method

初始化 JigsawStandardSmoothShape 的新实例。
public JigsawStandardSmoothShape ( ) : SharpDX
return SharpDX