C# Class Factories.ShapeFactory

Show file Open project: homoluden/fukami

Public Properties

Property Type Description
VERTICES_TOLERANCE System.Double

Public Methods

Method Description
CreateColor3Array ( ScalarColor3 first, ScalarColor3 rest, int count ) : Shapes.Colors.ScalarColor3[]

Creates the array of colors.

CreateColor3Array ( int count ) : Shapes.Colors.ScalarColor3[]
CreateColoredCircle ( System.Double radius, ushort vertexCount ) : Physics2DDotNet.Shapes.CircleShape
CreatePolygonShape ( Polygon polygon, System.Double gridSpacing ) : Physics2DDotNet.Shapes.PolygonShape
GetOrCreateColoredPolygonShape ( Vector2D vertices, System.Double gridSpacing ) : IShape

Method Details

CreateColor3Array() public static method

Creates the array of colors.
public static CreateColor3Array ( ScalarColor3 first, ScalarColor3 rest, int count ) : Shapes.Colors.ScalarColor3[]
first Shapes.Colors.ScalarColor3 The color of first item in array
rest Shapes.Colors.ScalarColor3 Color of all array items except first one
count int The length of array
return Shapes.Colors.ScalarColor3[]

CreateColor3Array() public static method

public static CreateColor3Array ( int count ) : Shapes.Colors.ScalarColor3[]
count int
return Shapes.Colors.ScalarColor3[]

CreateColoredCircle() public static method

public static CreateColoredCircle ( System.Double radius, ushort vertexCount ) : Physics2DDotNet.Shapes.CircleShape
radius System.Double
vertexCount ushort
return Physics2DDotNet.Shapes.CircleShape

CreatePolygonShape() public static method

public static CreatePolygonShape ( Polygon polygon, System.Double gridSpacing ) : Physics2DDotNet.Shapes.PolygonShape
polygon Shapes.Abstract.Polygon
gridSpacing System.Double
return Physics2DDotNet.Shapes.PolygonShape

GetOrCreateColoredPolygonShape() public static method

public static GetOrCreateColoredPolygonShape ( Vector2D vertices, System.Double gridSpacing ) : IShape
vertices Vector2D
gridSpacing System.Double
return IShape

Property Details

VERTICES_TOLERANCE public static property

public static Double,System VERTICES_TOLERANCE
return System.Double