C# Class JustTheBasics.Segment

显示文件 Open project: HeroOfTheWinds/CS-350-410-431-Group-Project Class Usage Examples

Public Methods

Method Description
Segment ( Segment cpy ) : System
Segment ( float startX, float startY, float endX, float endY ) : System
getB ( ) : float
getHX ( ) : float
getHY ( ) : float
getLX ( ) : float
getLY ( ) : float
getM ( ) : float
intersect ( Segment inter, bool xaxis ) : bool
isVert ( ) : bool
move ( float speed, string dir ) : void

Method Details

Segment() public method

public Segment ( Segment cpy ) : System
cpy Segment
return System

Segment() public method

public Segment ( float startX, float startY, float endX, float endY ) : System
startX float
startY float
endX float
endY float
return System

getB() public method

public getB ( ) : float
return float

getHX() public method

public getHX ( ) : float
return float

getHY() public method

public getHY ( ) : float
return float

getLX() public method

public getLX ( ) : float
return float

getLY() public method

public getLY ( ) : float
return float

getM() public method

public getM ( ) : float
return float

intersect() public method

public intersect ( Segment inter, bool xaxis ) : bool
inter Segment
xaxis bool
return bool

isVert() public method

public isVert ( ) : bool
return bool

move() public method

public move ( float speed, string dir ) : void
speed float
dir string
return void