public class LinearTransformBuilder extends Object
LinearTransform,
Line,
PlaneDefined in the sis-referencing module
| Constructor and Description |
|---|
LinearTransformBuilder()
Creates a new linear transform builder.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
correlation()
Returns the correlation coefficients of the last transform created by
create(),
or null if none. |
LinearTransform |
create()
Creates a linear transform approximation from the source points to the target points.
|
void |
setSourcePoints(DirectPosition... points)
Sets the source points.
|
void |
setTargetPoints(DirectPosition... points)
Sets the target points.
|
String |
toString()
Returns a string representation of this builder for debugging purpose.
|
public LinearTransformBuilder()
public void setSourcePoints(DirectPosition... points) throws MismatchedDimensionException
Limitation: in current implementation, the source points must be one or two-dimensional. This restriction may be removed in a future SIS version.
points - The source points, assumed precise.MismatchedDimensionException - if at least one point does not have the expected number of dimensions.public void setTargetPoints(DirectPosition... points) throws MismatchedDimensionException
points - The target points, assumed uncertain.MismatchedDimensionException - if not all points have the same number of dimensions.public LinearTransform create()
public double[] correlation()
create(),
or null if none. If non-null, the array length is equals to the number of target
dimensions.null.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.