Global class that provides miscellaneous math functions.
Inheritance Hierarchy
Cognex.VisionPro CogMath
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 93.1.0.0
Syntax
The CogMath type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogMath |
Methods
| Name | Description | |
|---|---|---|
| AngleLineLine | Returns the angle in radians measured from LineA to LineB. | |
| AnglePointPoint | Returns the angle in radians of the segment between the given points. | |
| CreateLineBisectingPointPoint | Create a new line by bisecting the segment between the given points. | |
| CreateLineParallel | Create a new line through the given point parallel to the given line. | |
| CreateLinePerpendicular | Create a new line through the given point perpendicular to the given line. | |
| CreateSegmentByAveragingSegments | Create a new line segment by averaging SegmentA and SegmentB. | |
| DistanceCircleCircle | Returns the shortest distance between the given circles. Also provides the points on each shape that correspond to this shortest distance. | |
| DistanceLineCircle | 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. | |
| DistanceLineEllipse | 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. | |
| DistancePointCircle | Returns the shortest distance from the given point to the given circle. Also provides the closest point on the circle. | |
| DistancePointEllipse | Returns the shortest distance from the given point to the given ellipse. Also provides the closest point on the ellipse. | |
| DistancePointLine | Returns the shortest distance from the given point to the given line. Also provides the closest point on the line. | |
| DistancePointPoint | Returns the length of the segment between the given points. Also provides the angle of the segment. | |
| DistancePointPolygon | Returns the shortest distance from the given point to the given polygon. Also provides the closest point on the polygon. | |
| DistancePointSegment | Returns the shortest distance from the given point to the given line segment. Also provides the closest point on the line segment. | |
| DistancePolygonPolygon | Returns the shortest distance between the given polygons. Also provides the points on each polygon that correspond to this shortest distance. | |
| DistanceSegmentCircle | 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. | |
| DistanceSegmentEllipse | 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. | |
| DistanceSegmentLine | Returns the shortest distance from the given line to the given line segment. Also provides the closest point on the line and line segment. | |
| DistanceSegmentPolygon | 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. | |
| DistanceSegmentSegment | Returns the shortest distance between the two given segments. Also provides the closest point on each segment. | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InsidePointCircle | Returns whether the given point is inside the given circle. | |
| InsidePointEllipse | Returns whether the given point is inside the given ellipse. | |
| IntersectCircleCircle | Returns whether the given circles intersect. Also provides the points of intersection. | |
| IntersectLineCircle | Returns whether the given circle and line intersect. Also provides the points of intersection. | |
| IntersectLineEllipse | Returns whether the given ellipse and line intersect. Also provides the points of intersection. | |
| IntersectLineLine | Returns whether the given lines intersect. Also provides the point of intersection and the angle between the lines. | |
| IntersectSegmentCircle | Returns whether the given circle and line segment intersect. Also provides the points of intersection. | |
| IntersectSegmentEllipse | Returns whether the given ellipse and line segment intersect. Also provides the points of intersection. | |
| IntersectSegmentLine | Returns whether the given segment and line intersect. Also provides the point of intersection. | |
| IntersectSegmentSegment | Returns whether the given segments intersect. Also provides the point of intersection. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
See Also