Search
Utilities Members
Constructors Methods
 


A class that exposes different helper methods.

The following tables list the members exposed by the Utilities type.

 Public Constructors

  Name Description

Utilities

Initializes a new instance of the Utilities class.

 Public Methods

  Name Description

calcCircumferenceCoord

Calculates the point that marks the specified angle and belongs to the circumference with the specified center and radius.

calcPieBoundingRect

Calculates the rectangle that bounds the pie with the specified raidus and maximum width of labels at the right and left pie side.

cartesianToPolar

Converts the specified point from the Cartesian to the Polar coordinate system.

ccw

A helper method.

createPolygon

Overloaded.  

createRoundRect

Creates a rounded rectangle with the specified location, width, height and corner radiuses.

distance

Calculates the distance between the specified two points.

drawImage

Overloaded.  

formatDateTime

Formats the specified long value to a string that represents a DateTime.

intersect

Checks if the line between the first two points intersects with the line between the last two points.

isNullOrEmpty

Checks if the specified string is null or empty.

normalizeRect

Converts the coordinates of the specified rectangle to coordinates of the drawing coordinate system.

pointInEllipse

Checks if the specified point is inside the ellipse defined by the specified Rectangle2D.

pointInPie

Checks if the specified point is inside the portion of the pie defined by the specified bounding rectangle, angle and sweep angle.

pointInPolygon

Checks if the specified point is inside the polygon defined by the specified array of points.

pointInPolyRect

Tests if the specified Point2D is inside the polygon defined by the specified array of points and the specified Rectangle2D.

pointInRect

Checks if the specified Point2D is inside the specified Rectangle2D.

pointInSegment

Checks if the specified Point2D is inside the segment defined by the specified two Point2D instances.

rotateRect

Rotates the specified Rectangle2D around the specified pivot point and at the specified angle.

shellSort

Applies the shell sorting algorithm on the specified data array.

shellSortByX

Applies the shell sorting algorithm on the X-values of the specified array of Point2D instances.

 See Also