Mathematics CATMathTransformation1D
Usage: you must use this class as is. You should never derive it.
public class CATMathTransformation1D
Class defining a transformation in a 1D space.
t(x) = a*x + b.
Constructor and Destructor Index
- o
CATMathTransformation1D()
- Constructs the identity 1D transformation.
- o
CATMathTransformation1D(double*)
- Constructs a 1D transformation.
- o
CATMathTransformation1D(double,double)
- Constructs a 1D transformation.
- o
CATMathTransformation1D(double,double,double,double)
-
- o
CATMathTransformation1D(CATMathTransformation1D&)
- Copy constructor.
- o
~CATMathTransformation1D()
-
Method Index
- o
Apply(double)
- Transforms a double.
- o
GetCoef(double[])
- Retrieves the coefficients.
- o
GetMatrix1D()
-
- o
GetMatrix1D()
- Returns the scale coefficient.
- o
GetVector1D()
-
- o
GetVector1D()
- Returns the shift coefficient.
- o
Set(double,double,double,double)
- Creates the linear transformation that transforms iX0 into iFx0
and iX1 into iFx1.
- o
SetCoef(double[])
- Modifies the coefficients.
Constructor and Destructor
o CATMathTransformation1D
public CATMathTransformation1D( | ) |
-
Constructs the identity 1D transformation.
t(x) = x .
o CATMathTransformation1D
public CATMathTransformation1D( | | iArray) |
-
Constructs a 1D transformation.
t(x) = iArray[0]*x + iArray[1].
- Parameters:
-
- iArray
- The array of the scale and shift coefficient.
o CATMathTransformation1D
public CATMathTransformation1D( | | iA, |
| | iB) |
-
Constructs a 1D transformation.
t(x) = iA*x + iB.
- Parameters:
-
- iA
- The scale coefficient.
- iB
- The shift coefficient.
o CATMathTransformation1D
public CATMathTransformation1D( | const | iX0, |
| const | iFx0, |
| const | iX1, |
| const | iFx1) |
-
- Deprecated:
- V5R20 Set
Creates the linear transformation that transforms ix0 into ifx0
and ix1 into ifx1.
ix0 must be different from ix1, but this is not checked.
o CATMathTransformation1D
public CATMathTransformation1D( | const | iTransfo1DToCopy) |
-
Copy constructor.
o ~CATMathTransformation1D
public ~CATMathTransformation1D( | ) |
-
Methods
o Apply
public Apply( | | iParamToTransform) |
-
Transforms a double.
- Parameters:
-
- iParamToTransform
- The double to transform.
- Returns:
- The result of the transformation.
o GetCoef
-
Retrieves the coefficients.
- Parameters:
-
- ioCoef
- The array (that must be already allocated).
t(x) = ioCoef[0]*x + ioCoef[1].
o GetMatrix1D
-
o GetMatrix1D
-
Returns the scale coefficient.
- Returns:
- The scale coefficient.
o GetVector1D
-
o GetVector1D
-
Returns the shift coefficient.
- Returns:
- The shift coefficient.
o Set
public Set( | const | iX0, |
| const | iFx0, |
| const | iX1, |
| const | iFx1) |
-
Creates the linear transformation that transforms iX0 into iFx0
and iX1 into iFx1.
- Parameters:
-
- iX0
- Double.
- iFx0
- Image of iX0 by the requested transformation.
- iX1
- Double.
- iFx1
- Image of iX1 by the requested transformation.
- Returns:
- E_FAIL if iX0 is equal to iX1 but not iFx0 and iFx1,
otherwise S_OK
In case of failure, the computed transformation is the identity.
o SetCoef
public SetCoef( | const | iNewCoef) |
-
Modifies the coefficients.
- Parameters:
-
- iNewCoef
- The array of the new coefficients.
This object is included in the file: CATMathTransformation1D.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.