C# Class WpfApplication7.Tools

Mostra file Open project: NCCUCS-Windows-Programming/SpaceWar

Public Properties

Property Type Description
instance Tools

Public Methods

Method Description
AABBtest ( float ax1, float ay1, float ax2, float ay2, float bx1, float by1, float bx2, float by2 ) : bool
getPos ( float x, float y ) : int[]
getPos_map ( float x, float y ) : int[]
getPos_margin ( int x, int y ) : int[]

Method Details

AABBtest() public method

public AABBtest ( float ax1, float ay1, float ax2, float ay2, float bx1, float by1, float bx2, float by2 ) : bool
ax1 float
ay1 float
ax2 float
ay2 float
bx1 float
by1 float
bx2 float
by2 float
return bool

getPos() public method

public getPos ( float x, float y ) : int[]
x float
y float
return int[]

getPos_map() public method

public getPos_map ( float x, float y ) : int[]
x float
y float
return int[]

getPos_margin() public method

public getPos_margin ( int x, int y ) : int[]
x int
y int
return int[]

Property Details

instance public_oe static_oe property

public static Tools instance
return Tools