C# 클래스 SFML.Graphics.RectangleShape

Specialized shape representing a rectangle
상속: Shape
파일 보기 프로젝트 열기: SFML/SFML.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetPoint ( uint index ) : Vector2f

Get the position of a point The returned point is in local coordinates, that is, the shape's transforms (position, rotation, scale) are not taken into account. The result is undefined if index is out of the valid range.

GetPointCount ( ) : uint

Get the total number of points of the rectangle.

RectangleShape ( ) : SFML.System

Default constructor

RectangleShape ( RectangleShape copy ) : SFML.System

Construct the shape from another shape

RectangleShape ( Vector2f size ) : SFML.System

Construct the shape with an initial size

메소드 상세

GetPoint() 공개 메소드

Get the position of a point The returned point is in local coordinates, that is, the shape's transforms (position, rotation, scale) are not taken into account. The result is undefined if index is out of the valid range.
public GetPoint ( uint index ) : Vector2f
index uint Index of the point to get, in range [0 .. 3]
리턴 Vector2f

GetPointCount() 공개 메소드

Get the total number of points of the rectangle.
public GetPointCount ( ) : uint
리턴 uint

RectangleShape() 공개 메소드

Default constructor
public RectangleShape ( ) : SFML.System
리턴 SFML.System

RectangleShape() 공개 메소드

Construct the shape from another shape
public RectangleShape ( RectangleShape copy ) : SFML.System
copy RectangleShape Shape to copy
리턴 SFML.System

RectangleShape() 공개 메소드

Construct the shape with an initial size
public RectangleShape ( Vector2f size ) : SFML.System
size Vector2f Size of the shape
리턴 SFML.System