CADability dotNET

The Geometry type exposes the following members.

Constructors

  NameDescription
Public methodGeometry
Initializes a new instance of the Geometry class

Methods

  NameDescription
Public methodStatic memberCircleFit
tries to find a center and radius for a circle which best fits to the provided points
Public methodStatic memberDist(GeoPoint, GeoPoint)
Returns the distance of the two 3d points.
Public methodStatic memberDist(GeoPoint2D, GeoPoint2D)
Returns the distance of the two 2d points.
Public methodStatic memberDistLL
Calculates the minimal distance between two lines and the parameter on the lines where the minimal distance occures. If the lines are parallel, the parameters will be double.MaxValue. The point l1Start + par1*l1Dir is closest to the second line, and the point l2Start + par2*l2Dir is closest to the first line.
Public methodStatic memberDistPL(GeoPoint, GeoPoint, GeoPoint)
Returns the distance of a point from a line (3d)
Public methodStatic memberDistPL(GeoPoint, GeoPoint, GeoVector)
Returns the distance of a point from a line (2d)
Public methodStatic memberDistPL(GeoPoint2D, GeoPoint2D, GeoPoint2D)
Returns the distance of a point from a line (2d), the distance is positive when the point is on the left side of the line, negative on the right side.
Public methodStatic memberDistPL(GeoPoint2D, GeoPoint2D, GeoVector2D)
Returns the distance of a point from a line (2d)
Public methodStatic memberDropPL(GeoPoint, GeoPoint, GeoPoint)
Returns the perpendicular foot point of point p on the line (s,e)
Public methodStatic memberDropPL(GeoPoint, GeoPoint, GeoVector)
Returns the perpendicular foot point of point p on the line through s with direction v
Public methodStatic memberDropPL(GeoPoint2D, GeoPoint2D, GeoPoint2D)
Returns the perpendicular foot point of point p on the line (lstart,lend)
Public methodStatic memberDropPL(GeoPoint2D, GeoPoint2D, GeoVector2D)
Returns the perpendicular foot point of point p on the line through s with direction v
Public methodStatic memberGetPosition
Public methodStatic memberInnerIntersection
Returns true if the line segments p1->p2 and p3->p4 have an inner intersection, i.e. an intersection point inside the bounds of the line segment. Returns false otherwise, returns false if the intersection point coincides with one of the two lines
Public methodStatic memberIntersectCC
Returns the intersection points of two circles in 2d. The result may contain 0 to 2 points.
Public methodStatic memberIntersectLC(GeoPoint2D, GeoPoint2D, GeoPoint2D, Double)
Returns the intersection points of a circle and a line in 2d. The result may contain 0 to 2 points.
Public methodStatic memberIntersectLC(GeoPoint2D, GeoVector2D, GeoPoint2D, Double)
Returns the intersection points of a circle and a line in 2d. The result may contain 0 to 2 points.
Public methodStatic memberIntersectLL(GeoPoint2D, GeoPoint2D, GeoPoint2D, GeoPoint2D, GeoPoint2D%)
Calculates the intersectionpoint of two lines in 2d. The intersection point may be in any extension of the two lines.
Public methodStatic memberIntersectLL(GeoPoint2D, GeoVector2D, GeoPoint2D, GeoVector2D, GeoPoint2D%)
Calculates the intersectionpoint of two lines in 2d.
Public methodStatic memberLineFit
Public methodStatic memberLinePar(GeoPoint, GeoPoint, GeoPoint)
Public methodStatic memberLinePar(GeoPoint, GeoVector, GeoPoint)
Public methodStatic memberLinePar(GeoPoint2D, GeoPoint2D, GeoPoint2D)
Public methodStatic memberLinePar(GeoPoint2D, GeoVector2D, GeoPoint2D)
Liefert den Parameter des gegebenen Punktes auf der gegebenen Linie
Public methodStatic memberLinePos(GeoPoint, GeoPoint, Double)
Public methodStatic memberLinePos(GeoPoint2D, GeoPoint2D, Double)
Public methodStatic memberOnLeftSide(GeoPoint2D, GeoPoint2D, GeoPoint2D)
Public methodStatic memberOnLeftSide(GeoPoint2D, GeoPoint2D, GeoVector2D)
Checks whether the point P is on the left side of the line given by lstart and ldir. If the point lies exactly on the line, the result is false. There is no precision or epsilon test.
Public methodStatic memberOnSameSide(GeoPoint2D, GeoPoint2D, GeoPoint2D, GeoPoint2D)
Returns true, if p1 an p2 are on the same side of the line given by p3 and p4. Also returns true if one of the two points p1 and p2 coincide with the line (p3,p4)
Public methodStatic memberOnSameSide(GeoPoint2D, GeoPoint2D, GeoPoint2D, GeoVector2D)
Public methodStatic memberPointInsideTriangle
Public methodStatic memberSegmentInnerIntersection
Same as SegmentIntersection(GeoPoint2D, GeoPoint2D, GeoPoint2D, GeoPoint2D), but returns true only if the intersection happens in the inside of the two segments, not at the endpoints
Public methodStatic memberSegmentIntersection
Returns true, if the two line segments given by (p0,p1) and (p2,p3) have a common intersection. The intersection point is noct calculated. This Method is intended as a fast check for intersection or not. Returns true, if one segment starts or ends on the other segment.

See Also