C# Class System.Drawing.Quadrilateral

Quadrilateral object.
Datei anzeigen Open project: Longkong/Pojjaman Class Usage Examples

Public Properties

Property Type Description
Empty Quadrilateral

Public Methods

Method Description
Contains ( PointF point ) : bool

Checks if the given PointF is contained within the quadrilateral.

Contains ( PointF point, PointF cornerPoints ) : bool

Checks if given PointF is contained within quadrilateral defined by cornerPoints provided.

Draw ( Graphics graphics, Pen pen, Brush brush ) : void

Draws the Quadrilateral with Graphics provided.

Quadrilateral ( PointF point1, PointF point2, PointF point3, PointF point4, bool toClose ) : System

Initilizes Quadrilateral object with given corner points.

Protected Methods

Method Description
Quadrilateral ( ) : System

Creates empty Quadrilateral object

Private Methods

Method Description
DoesIntersects ( PointF point, PointF point1, PointF point2 ) : bool

Checks if the line coming out of the point downwards intersects with a line through point1 and point2.

Method Details

Contains() public method

Checks if the given PointF is contained within the quadrilateral.
public Contains ( PointF point ) : bool
point PointF /// PointF structure to check for. ///
return bool

Contains() public static method

Checks if given PointF is contained within quadrilateral defined by cornerPoints provided.
public static Contains ( PointF point, PointF cornerPoints ) : bool
point PointF /// PointF to check. ///
cornerPoints PointF /// Array of PointF structures defining corners of the /// quadrilateral. ///
return bool

Draw() public method

Draws the Quadrilateral with Graphics provided.
public Draw ( Graphics graphics, Pen pen, Brush brush ) : void
graphics Graphics /// Graphics used to draw. ///
pen Pen /// Pen used to draw outline. ///
brush Brush /// Brush used to fill the inside. ///
return void

Quadrilateral() protected method

Creates empty Quadrilateral object
protected Quadrilateral ( ) : System
return System

Quadrilateral() public method

Initilizes Quadrilateral object with given corner points.
public Quadrilateral ( PointF point1, PointF point2, PointF point3, PointF point4, bool toClose ) : System
point1 PointF /// First PointF. ///
point2 PointF /// Second PointF. ///
point3 PointF /// Third PointF. ///
point4 PointF /// Fourth PointF. ///
toClose bool /// Indicator should the quadrilateral be closed by the line. ///
return System

Property Details

Empty public_oe static_oe property

public static Quadrilateral,System.Drawing Empty
return Quadrilateral