casa
5.7.0-16
|
Geometry related methods. More...
#include <Geometry.h>
Static Public Member Functions | |
static std::pair< Double, Double > | rotate2D (Double x, Double y, const Quantity &theta) |
Get result of rotating a 2-D vector counterclockwise through an angle theta . More... | |
static Bool | doLineSegmentsIntersect (Double a0x, Double a0y, Double a1x, Double a1y, Double b0x, Double b0y, Double b1x, Double b1y) |
Determine if two coplanar line segments, a and b, intersect. More... | |
Geometry related methods.
Public interface
self-explanatory
Various geometry related functions
Commonly used geometrical functions for various image and region applications.
Definition at line 59 of file Geometry.h.
|
static |
Determine if two coplanar line segments, a and b, intersect.
Line segment a has end points a0 and a1, and line segment b has endpoints b0 and b1. Algorithm from http://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect
|
static |
Get result of rotating a 2-D vector counterclockwise through an angle theta
.
The output pair will have x as the first member and y as the second. theta
must have angular units (no explicit checking is done, but an exception will be thrown from the Quanta code if not).