CogMath MethodsCognex VisionPro 9.22 SR1

The CogMath type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAngleLineLine
Returns the angle in radians measured from LineA to LineB.
Public methodStatic memberAnglePointPoint
Returns the angle in radians of the segment between the given points.
Public methodStatic memberCreateLineBisectingPointPoint
Create a new line by bisecting the segment between the given points.
Public methodStatic memberCreateLineParallel
Create a new line through the given point parallel to the given line.
Public methodStatic memberCreateLinePerpendicular
Create a new line through the given point perpendicular to the given line.
Public methodStatic memberCreateSegmentByAveragingSegments
Create a new line segment by averaging SegmentA and SegmentB.
Public methodStatic memberDistanceCircleCircle
Returns the shortest distance between the given circles. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistanceLineCircle
Returns the shortest distance from the given line to the given circle. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistanceLineEllipse
Returns the shortest distance from the given line to the given ellipse. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistancePointCircle
Returns the shortest distance from the given point to the given circle. Also provides the closest point on the circle.
Public methodStatic memberDistancePointEllipse
Returns the shortest distance from the given point to the given ellipse. Also provides the closest point on the ellipse.
Public methodStatic memberDistancePointLine
Returns the shortest distance from the given point to the given line. Also provides the closest point on the line.
Public methodStatic memberDistancePointPoint
Returns the length of the segment between the given points. Also provides the angle of the segment.
Public methodStatic memberDistancePointPolygon
Returns the shortest distance from the given point to the given polygon. Also provides the closest point on the polygon.
Public methodStatic memberDistancePointSegment
Returns the shortest distance from the given point to the given line segment. Also provides the closest point on the line segment.
Public methodStatic memberDistancePolygonPolygon
Returns the shortest distance between the given polygons. Also provides the points on each polygon that correspond to this shortest distance.
Public methodStatic memberDistanceSegmentCircle
Returns the shortest distance from the given line segment to the given circle. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistanceSegmentEllipse
Returns the shortest distance from the given line segment to the given ellipse. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistanceSegmentLine
Returns the shortest distance from the given line to the given line segment. Also provides the closest point on the line and line segment.
Public methodStatic memberDistanceSegmentPolygon
Returns the shortest distance from the given segment to the given polygon. Also provides the points on each shape that correspond to this shortest distance.
Public methodStatic memberDistanceSegmentSegment
Returns the shortest distance between the two given segments. Also provides the closest point on each segment.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInsidePointCircle
Returns whether the given point is inside the given circle.
Public methodStatic memberInsidePointEllipse
Returns whether the given point is inside the given ellipse.
Public methodStatic memberIntersectCircleCircle
Returns whether the given circles intersect. Also provides the points of intersection.
Public methodStatic memberIntersectLineCircle
Returns whether the given circle and line intersect. Also provides the points of intersection.
Public methodStatic memberIntersectLineEllipse
Returns whether the given ellipse and line intersect. Also provides the points of intersection.
Public methodStatic memberIntersectLineLine
Returns whether the given lines intersect. Also provides the point of intersection and the angle between the lines.
Public methodStatic memberIntersectSegmentCircle
Returns whether the given circle and line segment intersect. Also provides the points of intersection.
Public methodStatic memberIntersectSegmentEllipse
Returns whether the given ellipse and line segment intersect. Also provides the points of intersection.
Public methodStatic memberIntersectSegmentLine
Returns whether the given segment and line intersect. Also provides the point of intersection.
Public methodStatic memberIntersectSegmentSegment
Returns whether the given segments intersect. Also provides the point of intersection.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also