C# Class PurplePen.MapView.Util

Mostrar archivo Open project: petergolde/PurplePen

Public Methods

Method Description
Angle ( PointF pt1, PointF pt2 ) : float
BoundsOfTransformedRectangle ( RectangleF rect, Matrix transform ) : RectangleF
Distance ( PointF pt1, PointF pt2 ) : double
DistanceF ( PointF pt1, PointF pt2 ) : float
DistanceSquared ( PointF pt1, PointF pt2 ) : double
InflateRect ( RectangleF rect, float delta ) : RectangleF
LoadCursor ( string name ) : Cursor
MidPoint ( PointF pt1, PointF pt2 ) : PointF
PointFromPointF ( PointF pointf ) : Point
RectFromRectF ( RectangleF rectf ) : Rectangle
RectangleFromPoints ( Point pt1, Point pt2 ) : Rectangle
TransformRectangle ( Matrix m, RectangleF rect ) : RectangleF

Method Details

Angle() public static method

public static Angle ( PointF pt1, PointF pt2 ) : float
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return float

BoundsOfTransformedRectangle() public static method

public static BoundsOfTransformedRectangle ( RectangleF rect, Matrix transform ) : RectangleF
rect System.Drawing.RectangleF
transform Matrix
return System.Drawing.RectangleF

Distance() public static method

public static Distance ( PointF pt1, PointF pt2 ) : double
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return double

DistanceF() public static method

public static DistanceF ( PointF pt1, PointF pt2 ) : float
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return float

DistanceSquared() public static method

public static DistanceSquared ( PointF pt1, PointF pt2 ) : double
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return double

InflateRect() public static method

public static InflateRect ( RectangleF rect, float delta ) : RectangleF
rect System.Drawing.RectangleF
delta float
return System.Drawing.RectangleF

LoadCursor() public static method

public static LoadCursor ( string name ) : Cursor
name string
return System.Windows.Forms.Cursor

MidPoint() public static method

public static MidPoint ( PointF pt1, PointF pt2 ) : PointF
pt1 System.Drawing.PointF
pt2 System.Drawing.PointF
return System.Drawing.PointF

PointFromPointF() public static method

public static PointFromPointF ( PointF pointf ) : Point
pointf System.Drawing.PointF
return Point

RectFromRectF() public static method

public static RectFromRectF ( RectangleF rectf ) : Rectangle
rectf System.Drawing.RectangleF
return System.Drawing.Rectangle

RectangleFromPoints() public static method

public static RectangleFromPoints ( Point pt1, Point pt2 ) : Rectangle
pt1 Point
pt2 Point
return System.Drawing.Rectangle

TransformRectangle() public static method

public static TransformRectangle ( Matrix m, RectangleF rect ) : RectangleF
m Matrix
rect System.Drawing.RectangleF
return System.Drawing.RectangleF