CADability dotNET

The ModOp2D type exposes the following members.

Constructors

  NameDescription
Public methodModOp2D
Creates a modification according to the given coefficients

Methods

  NameDescription
Public methodStatic memberFit(array<GeoVector2D>[]()[][], array<GeoVector2D>[]()[][])
Constructs a modification, that transforms the src vectors to the dst vectors. The length of src and dst must be 2. The resulting modification is any kind of an affinity, that projects the src vectors to the dst vectors. The origin (0,0) remains fixed.
Public methodStatic memberFit(array<GeoPoint2D>[]()[][], array<GeoPoint2D>[]()[][], Boolean)
Constructs a modification, that transforms the Src points to the Dst points. The length of Src and Dst must be equal and less than 4. If the length is 1, the resulting ModOp is a translation, if the length is 2, the parameter DoScale decides whether the resulting ModOp is a translation and rotation (DoScale==false) or translation, rotation and scaling (DoScale==true). If the length is 3, the resulting modification is any kind of an affinity, that projects the src points to the dst points.
Public methodGetInverse
Returns the inverse of this modification.
Public methodStatic memberPlaneToplane
Returns a 2d modification, that transforms from the coordinate system of the first plane to the coordinate system of the second plane. If the planes ar not coincident, the first plane is projected onto the second plane.
Public methodStatic memberRotate(SweepAngle)
Creates a rotation about the origin
Public methodStatic memberRotate(GeoPoint2D, SweepAngle)
Creates a rotation about a fixpoint
Public methodStatic memberScale(Double)
Public methodStatic memberScale(Double, Double)
Public methodStatic memberScale(GeoPoint2D, Double)
Public methodTo3D
Public methodStatic memberTranslate(GeoVector2D)
Creates a translation
Public methodStatic memberTranslate(Double, Double)
Creates a translation
Public methodStatic memberXYPart
Returns a 2d ModOp which represents the 2d part of a 3d ModOp.

Operators

  NameDescription
Public operatorStatic memberMultiply(ModOp2D, GeoPoint2D)
Modifies the given point by this modification.
Public operatorStatic memberMultiply(ModOp2D, GeoVector2D)
Modifies the given vector by this modification
Public operatorStatic memberMultiply(ModOp2D, ModOp2D)
Combines two modification into one modification. If two modifications have to be applied to several GeoPoint2Ds or GeoVector2Ds it is faster to use the combination.
Public operatorStatic memberMultiply(ModOp2D, Double)
Multiplies the double value by the scaling factor of this modification

Properties

  NameDescription
Public propertyDeterminant
Gets the determinant of this modification
Public propertyFactor
Returns the scaling factor of this modification
Public propertyStatic memberIdentity
Creates a modification which is the identity
Public propertyIsIdentity
Returns true, if this modification is the identity.
Public propertyIsIsogonal
Public propertyIsNull
Public propertyMatrix
Gets or sets the 3*2 Matrix that defines this mmodification
Public propertyMatrix2D
Public propertyStatic memberNull
Creates a modification which is null, i.e. no valid ModOp2D

See Also