C# Class NewTOAPIA.Graphics.RectangleD

Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
Empty RectangleD
x1 double
x2 double
y1 double
y2 double

Public Methods

Method Description
Clip ( RectangleD r ) : bool
Contains ( double x, double y ) : bool
Inflate ( double inflateSize ) : void
Intersect ( RectangleD left, RectangleD right ) : RectangleD
Intersect ( RectangleD rect ) : void
IsValid ( ) : bool
Offset ( double x, double y ) : void
RectangleD ( double x1_, double y1_, double x2_, double y2_ ) : System
SetRect ( double x1_, double y1_, double x2_, double y2_ ) : void
Union ( RectangleD left, RectangleD right ) : RectangleD

Private Methods

Method Description
Normalize ( ) : RectangleD

Method Details

Clip() public method

public Clip ( RectangleD r ) : bool
r RectangleD
return bool

Contains() public method

public Contains ( double x, double y ) : bool
x double
y double
return bool

Inflate() public method

public Inflate ( double inflateSize ) : void
inflateSize double
return void

Intersect() public static method

public static Intersect ( RectangleD left, RectangleD right ) : RectangleD
left RectangleD
right RectangleD
return RectangleD

Intersect() public method

public Intersect ( RectangleD rect ) : void
rect RectangleD
return void

IsValid() public method

public IsValid ( ) : bool
return bool

Offset() public method

public Offset ( double x, double y ) : void
x double
y double
return void

RectangleD() public method

public RectangleD ( double x1_, double y1_, double x2_, double y2_ ) : System
x1_ double
y1_ double
x2_ double
y2_ double
return System

SetRect() public method

public SetRect ( double x1_, double y1_, double x2_, double y2_ ) : void
x1_ double
y1_ double
x2_ double
y2_ double
return void

Union() public static method

public static Union ( RectangleD left, RectangleD right ) : RectangleD
left RectangleD
right RectangleD
return RectangleD

Property Details

Empty static public property

static public RectangleD,NewTOAPIA.Graphics Empty
return RectangleD

x1 public property

public double x1
return double

x2 public property

public double x2
return double

y1 public property

public double y1
return double

y2 public property

public double y2
return double