C# 클래스 flxSharp.flxSharp.FlxPoint

Stores a 2D floating point coordinate.
파일 보기 프로젝트 열기: jlorek/flxSharp 1 사용 예제들

공개 메소드들

메소드 설명
FlxPoint ( float x, float y ) : System

Instantiate a new point object.

ToVector2 ( ) : Vector2

Create a Vector2 from this FlxPoint.

copyFrom ( FlxPoint point ) : FlxPoint

Helper function, just copies the values from the specified point.

copyFromFlash ( object flashPoint ) : FlxPoint

Helper function, just copies the values from the specified Flash point.

copyTo ( FlxPoint point ) : FlxPoint

Helper function, just copies the values to the specified point.

copyToflash ( object flashPoint ) : object

Helper function, just copies the values from this point to the specified Flash point.

make ( float x, float y ) : FlxPoint

Instantiate a new point object. The naming is very confusing... This method does not make or create a point (like the NEW keyword). Instead it only set's the X and Y value of the current instance and returnes this. So this is NOT a factory method.

메소드 상세

FlxPoint() 공개 메소드

Instantiate a new point object.
public FlxPoint ( float x, float y ) : System
x float The X-coordinate of the point in space.
y float The Y-coordinate of the point in space.
리턴 System

ToVector2() 공개 메소드

Create a Vector2 from this FlxPoint.
public ToVector2 ( ) : Vector2
리턴 Vector2

copyFrom() 공개 메소드

Helper function, just copies the values from the specified point.
public copyFrom ( FlxPoint point ) : FlxPoint
point FlxPoint Any FlxPoint.
리턴 FlxPoint

copyFromFlash() 공개 메소드

Helper function, just copies the values from the specified Flash point.
public copyFromFlash ( object flashPoint ) : FlxPoint
flashPoint object Point Any Point.
리턴 FlxPoint

copyTo() 공개 메소드

Helper function, just copies the values to the specified point.
public copyTo ( FlxPoint point ) : FlxPoint
point FlxPoint Any FlxPoint.
리턴 FlxPoint

copyToflash() 공개 메소드

Helper function, just copies the values from this point to the specified Flash point.
public copyToflash ( object flashPoint ) : object
flashPoint object Any Point.
리턴 object

make() 공개 메소드

Instantiate a new point object. The naming is very confusing... This method does not make or create a point (like the NEW keyword). Instead it only set's the X and Y value of the current instance and returnes this. So this is NOT a factory method.
public make ( float x, float y ) : FlxPoint
x float The X-coordinate of the point in space.
y float The Y-coordinate of the point in space.
리턴 FlxPoint