C# 클래스 Factories.ShapeFactory

파일 보기 프로젝트 열기: homoluden/fukami

공개 프로퍼티들

프로퍼티 타입 설명
VERTICES_TOLERANCE System.Double

공개 메소드들

메소드 설명
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

메소드 상세

CreateColor3Array() 공개 정적인 메소드

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
리턴 Shapes.Colors.ScalarColor3[]

CreateColor3Array() 공개 정적인 메소드

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

CreateColoredCircle() 공개 정적인 메소드

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

CreatePolygonShape() 공개 정적인 메소드

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

GetOrCreateColoredPolygonShape() 공개 정적인 메소드

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

프로퍼티 상세

VERTICES_TOLERANCE 공개적으로 정적으로 프로퍼티

public static Double,System VERTICES_TOLERANCE
리턴 System.Double