26 #include "tnt/tnt_array2d.h" 86 void Solve(
const double x[],
const double y[],
87 const double xp[],
const double yp[],
int n);
92 void Scale(
double scaleFactor);
143 return (p_matrix.copy());
152 return (p_invmat.copy());
164 void checkDims(
const AMatrix &am)
const;
void Scale(double scaleFactor)
Apply a scale to the current affine transform.
Definition: Affine.cpp:188
void Translate(double tx, double ty)
Apply a translation to the current affine transform.
Definition: Affine.cpp:148
Affine()
Constructs an Affine transform.
Definition: Affine.cpp:44
double yp() const
Returns the computed y'.
Definition: Affine.h:110
void Rotate(double rot)
Apply a translation to the current affine transform.
Definition: Affine.cpp:165
double xp() const
Returns the computed x'.
Definition: Affine.h:101
void Identity()
Set the forward and inverse affine transform to the identity.
Definition: Affine.cpp:87
double y() const
Returns the computed y.
Definition: Affine.h:130
TNT::Array2D< double > AMatrix
Affine Matrix.
Definition: Affine.h:82
void Compute(double x, double y)
Compute (xp,yp) given (x,y).
Definition: Affine.cpp:205
std::vector< double > Coefficients(int var)
Return the affine coeffients for the entered variable (1 or 2).
Definition: Affine.cpp:234
Affine basis function.
Definition: Affine.h:80
AMatrix Forward() const
Returns the forward Affine matrix.
Definition: Affine.h:142
AMatrix Inverse() const
Returns the inverse Affine matrix.
Definition: Affine.h:151
static AMatrix getIdentity()
Return an Affine identity matrix.
Definition: Affine.cpp:75
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
std::vector< double > InverseCoefficients(int var)
Return the inverse affine coeffients for the entered variable (1 or 2).
Definition: Affine.cpp:251
void Solve(const double x[], const double y[], const double xp[], const double yp[], int n)
Given a set of coordinate pairs (n >= 3), compute the affine transform that best fits the points...
Definition: Affine.cpp:106
double x() const
Returns the computed x.
Definition: Affine.h:121
void ComputeInverse(double xp, double yp)
Compute (x,y) given (xp,yp).
Definition: Affine.cpp:219
~Affine()
Destroys the Affine object.
Definition: Affine.cpp:68