C# Class Core2D.Math.Rect2

Rectangle shape.
Mostrar archivo Open project: Core2D/Core2D Class Usage Examples

Public Properties

Property Type Description
Height double
Width double
X double
Y double

Public Methods

Method Description
Contains ( Vector2 point ) : bool

Create ( Point2 tl, Point2 br, double dx = 0.0, double dy = 0.0 ) : Rect2

Creates a new Rect2 instance.

Create ( XPoint tl, XPoint br, double dx = 0.0, double dy = 0.0 ) : Rect2

Creates a new Rect2 instance.

Create ( double x1, double y1, double x2, double y2, double dx = 0.0, double dy = 0.0 ) : Rect2

Creates a new Rect2 instance.

IntersectsWith ( Rect2 rect ) : bool

Rect2 ( double x, double y, double width, double height ) : Core2D.Shapes

Initializes a new Rect2 instance.

Method Details

Contains() public method

public Contains ( Vector2 point ) : bool
point Vector2
return bool

Create() public static method

Creates a new Rect2 instance.
public static Create ( Point2 tl, Point2 br, double dx = 0.0, double dy = 0.0 ) : Rect2
tl Point2
br Point2
dx double
dy double
return Rect2

Create() public static method

Creates a new Rect2 instance.
public static Create ( XPoint tl, XPoint br, double dx = 0.0, double dy = 0.0 ) : Rect2
tl Core2D.Shapes.XPoint
br Core2D.Shapes.XPoint
dx double
dy double
return Rect2

Create() public static method

Creates a new Rect2 instance.
public static Create ( double x1, double y1, double x2, double y2, double dx = 0.0, double dy = 0.0 ) : Rect2
x1 double
y1 double
x2 double
y2 double
dx double
dy double
return Rect2

IntersectsWith() public method

public IntersectsWith ( Rect2 rect ) : bool
rect Rect2
return bool

Rect2() public method

Initializes a new Rect2 instance.
public Rect2 ( double x, double y, double width, double height ) : Core2D.Shapes
x double
y double
width double
height double
return Core2D.Shapes

Property Details

Height public_oe property

public double Height
return double

Width public_oe property

public double Width
return double

X public_oe property

public double X
return double

Y public_oe property

public double Y
return double