MathTransform Class

Inherits from

GeoCalc.CoordOperation

 

Description

The MathTransform class represents a mathematical transformation that can be applied to CoordPoints.  GeoCalc supports several types of MathTransforms, which are outlined in the ClassType enumeration.  There are two ways to define a MathTransform.  

There first way is to set the various Parameters and Settings needed by the specific type of MathTransform.  A description of the Parameters and Settings needed by each type of MathTransform can be found by clicking on the appropriate description from the ClassType enumeration page.  

The second way that a MathTransform can be defined is by using the AddPoint and AddPointList methods to add a set of control and observed points for the transform.  A control point is a point in the domain of the MathTransform, which can be viewed as a source point or a point that has not yet passed through the MathTransform.  An observed point is a point in the codomain of the MathTransform, which can be viewed as a target point or one that has passed through the MathTransform.  Once a list of control and observed points has been added, the Solve method is used to find the Parameters and Settings that define the MathTransform from the control points to the observed points.

 

Constructors

Constructor

Description

MathTransform

Creates a new instance of the MathTransform class

 

Properties

Property

Description

BaseClass

Gets the base operation type. (Overrides CoordOperation.BaseClass).

Class

Gets the math transform class type.

IsSolved

Indicates whether the math transform has been successfully computed from entered point pairs, or the parameters are otherwise set and the object ready to use.

TypeName

Gets the string name of this math transform class type. (Overrides CoordOperation.TypeName).

Inherited Property

Description

Accuracy

Inherited from CoordOperation.

Is2D

Inherited from CoordOperation.

Parameters

Inherited from CoordOperation.

Reversible

Inherited from CoordOperation.

 

Methods

Method

Description

AddPoint

Adds a point pair to use to compute the transform parameters.

AddPointList

Adds a collection of point pairs to compute the transform parameters.

Clear

Clears the math transform

Clone

Creates a clone of this object. (Overrides CoordOperation.Clone()).

CreateMathTransform

Helper method to create a new math transform object.

DetermineBestMathTransform

Given a solution of points (source/target), determine the best (highest order) transform that closes within a given tolerance.

Equals

Value equals comparison. (Overrides Object.Equals()).

GetHashCode

Serves as a hash function for a particular type. (Overrides Object.GetHashCode()).

GetMathTransformString

Helper method to equate a math transform class type to the equivalent string.

GetMathTransformType

Helper method to equate a string to the equivalent math transform class type.

GetMathTransformTypes

Helper method to return a list of math transform class types.

ReasonableClosure

Determines whether or not the points in this MathTransform close.

SetSolved

Set the parameters and mark mathtransform as solved.

Solve

Computes the math transform from entered point pairs or checks that the parameters are set and the object ready to use

Transform

Transforms a point.

Inherited Method

Description

GetOperationCodes

Inherited from CoordOperation.

GetType

Gets the Type of the current instance. (Inherited from Object).

IsTimeDependent

Inherited from CoordOperation.

ToString

Returns a string that represents the current object. (Inherited from Object).

 

Overloaded Operators

Operator

Description

operator=

Assigns a new value to this MathTransform

operator==

Compares the value of two MathTransforms

operator!=

Compares the value of two MathTransforms