Search
Utilities Methods
 


 Public Methods

  Name Description

AddPoints

Adds two points. Point.Offset() may be used instead.

ApproxBezier

Approximates the specified bezier curve with a polyline. The specified quality parameter varies in the interval [1, ...) and is proportional to the number of points in the resulting polyline.

CalcBezierCoef

Calculates the bezier coefficients in the equation of the specified bezier curve.

Ccw

Determines, given three points, if when travelling from the first to the second to the third, we travel in a counterclockwise direction.

Closer

Returns the point from the specified pair, which lies closer to the specified pivot.

Degrees

Converts the values expressed in radians to degrees.

DeviceToDoc

Overloaded.  

Distance

Overloaded.  

DistancePoint

Calculates the point of the the specified line segment which determines the distance from the specified point to the line segment

DistanceSq

Overloaded.  

DistToBezier

Calculates the shortest distance from the specified point to the specified bezier curve.

DistToLineSegment

Calculates distance from the specified point to the specified line segment

DistToPolyline

Overloaded.  

DistToRect

Calculates distance from the specified point to the specified rectangle.

DocToDevice

Overloaded.  

GetBezierPt

Gets the point from the specified bezier curve, corresponding to the specified parameter t [0, 1].

GetEllipseIntr

Calculate the intersection point between the ellipse with the specified bounds and the line segment defined by the specified points.

GetNearestPt

Calculates the orthogonal projection of the specified point on the line defined be the specified point pair.

GetRectIntr

Calculates the intersection point between the specified rectangle and the line segment defined by the specified points.

Intersect

Determines whether the specified line segments intersect.

LineIntersect

Overloaded.  

LineIntersectNaN

Finds the intersection point of the lines defined by the specified point pairs.

PointInEllipse

Checks whether the specified point is contained in the ellipse defined by the specified rectangle.

PointInPolygon

Determines if the specified point is within the specified polygon.

PointInPolyRect

Determines if the specified point is within the smallest rectangle that encloses the specified polygon.

PointInSegment

Checks whether the line segment defined by the specified points contain the specified point.

Radians

Converts the values expressed in degrees to radians.

SegmentIntersect

Checks whether the segments defined by the specified point pairs intersect and returns the intersection point.

 See Also