33extern double dot (
const QPointF &vec1,
50extern double magnitude (
const QPointF &vec);
53extern QPointF
normalize (
const QPointF &vec);
56extern QRgb
pixelRGB (
const QImage &image,
int x,
int y);
59extern QRgb
pixelRGB1 (
const QImage &image1Bit,
int x,
int y);
62extern QRgb
pixelRGB8 (
const QImage &image8Bit,
int x,
int y);
65extern QRgb
pixelRGB32 (
const QImage &image32Bit,
int x,
int y);
89 double *projectedDistanceOutsideLine,
90 double *distanceToLine);
93extern void setPixelRGB (QImage &image,
int x,
int y, QRgb q);
96extern void setPixelRGB1 (QImage &image1Bit,
int x,
int y, QRgb q);
99extern void setPixelRGB8 (QImage &image8Bit,
int x,
int y, QRgb q);
102extern void setPixelRGB32 (QImage &image32Bit,
int x,
int y, QRgb q);
QRgb pixelRGB8(const QImage &image8Bit, int x, int y)
Get pixel method for 8 bit depth.
double angleFromVectorToVector(const QPointF &vFrom, const QPointF &vTo)
Angle between two vectors. Direction is positive when rotation is about +z vector,...
QRgb pixelRGB32(const QImage &image32Bit, int x, int y)
Get pixel method for 32 bit depth.
double dot(const QPointF &vec1, const QPointF &vec2)
Vector dot product.
QRgb pixelRGB(const QImage &image, int x, int y)
Get pixel method for any bit depth.
void setPixelRGB8(QImage &image8Bit, int x, int y, QRgb q)
Set pixel method for 8 bit depth.
double magnitude(const QPointF &vec)
Norm of vector.
double angleFromBasisVectors(double xBasisX, double xBasisY, double yBasisX, double yBasisY, double x, double y)
Four quadrant angle to specified vector, given two orthogonal basis vectors corresonding to +x and +y...
double angleBetweenVectors(const QPointF &v1, const QPointF &v2)
Angle between two vectors. Direction is unimportant, so result is between 0 to pi radians.
void setPixelRGB(QImage &image, int x, int y, QRgb q)
Set pixel method for any bit depth.
void setPixelRGB1(QImage &image1Bit, int x, int y, QRgb q)
Set pixel method for one bit depth.
void projectPointOntoLine(double xToProject, double yToProject, double xStart, double yStart, double xStop, double yStop, double *xProjection, double *yProjection, double *projectedDistanceOutsideLine, double *distanceToLine)
Find the projection of a point onto a line segment such that the line through the point and its proje...
void ellipseFromParallelogram(double xTL, double yTL, double xTR, double yTR, double xBR, double yBR, double &angleRadians, double &aAligned, double &bAligned)
Calculate ellipse parameters that is incribed in a parallelogram centered at the origin,...
QPointF normalize(const QPointF &vec)
Return normalized vector.
QRgb pixelRGB1(const QImage &image1Bit, int x, int y)
Get pixel method for one bit depth.
void setPixelRGB32(QImage &image32Bit, int x, int y, QRgb q)
Set pixel method for 32 bit depth.