C# Class Project290.Physics.Common.PolygonCreationAssistance

Class used as a data container and helper for the texture-to-vertices code.
Show file Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
Data uint[]
Height int
HoleDetection bool
MultipartDetection bool
Width int

Public Methods

Method Description
InBounds ( Vector2 &coord ) : bool
IsSolid ( Vector2 &pixel ) : bool
IsSolid ( int index ) : bool
IsSolid ( int x, int y ) : bool
IsValid ( ) : bool
PolygonCreationAssistance ( uint data, int width, int height ) : System

Method Details

InBounds() public method

public InBounds ( Vector2 &coord ) : bool
coord Vector2
return bool

IsSolid() public method

public IsSolid ( Vector2 &pixel ) : bool
pixel Vector2
return bool

IsSolid() public method

public IsSolid ( int index ) : bool
index int
return bool

IsSolid() public method

public IsSolid ( int x, int y ) : bool
x int
y int
return bool

IsValid() public method

public IsValid ( ) : bool
return bool

PolygonCreationAssistance() public method

public PolygonCreationAssistance ( uint data, int width, int height ) : System
data uint
width int
height int
return System

Property Details

Data public property

public uint[] Data
return uint[]

Height public property

public int Height
return int

HoleDetection public property

public bool HoleDetection
return bool

MultipartDetection public property

public bool MultipartDetection
return bool

Width public property

public int Width
return int