CADability dotNET

The ModOp type exposes the following members.

Constructors

Methods

  NameDescription
Public methodStatic memberFit(array<GeoPoint>[]()[][], array<GeoPoint>[]()[][], Boolean)
Constructs a ModOp, that transforms the Src points to the Dst points. The length of Src and Dst must be equal and less than 5. 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 or 4, the resulting ModOp is any kind of an affinity, that projects the src points to the dst points.
Public methodStatic memberFit(GeoPoint, array<GeoVector>[]()[][], GeoPoint, array<GeoVector>[]()[][])
Public methodGetInverse
Returns the inverse of this modification.
Public methodStatic memberReflectPlane()()()()
Constructs a ModOp, that performs a reflection about the y/z plane
Public methodStatic memberReflectPlane(Plane)
Constructs a ModOp, that performs a reflection about the given plane
Public methodStatic memberReflectPoint
Constructs a ModOp, that performs a reflection about the given point
Public methodStatic memberRotate(GeoVector, SweepAngle)
Creates a modification that performs a rotation about an axis through the origina
Public methodStatic memberRotate(GeoPoint, GeoVector, GeoVector)
Creates a rotation around the fixpoint that moves the vector from to the vector to.
Public methodStatic memberRotate(GeoPoint, GeoVector, SweepAngle)
Creates a modification that performs a rotation about an axis through the given point
Public methodStatic memberScale(Double)
Creates a modification that performs a scaling about the origin
Public methodStatic memberScale(GeoPoint, Double)
Creates a modification that performs a scaling about a given point
Public methodStatic memberScale(GeoVector, Double)
Creates a modification that performs a scaling in a given direction
Public methodStatic memberScale(Double, Double, Double)
Creates a modification that performs a scaling with different factors in x,y and z direction
Public methodStatic memberScale(GeoPoint, GeoVector, Double)
Creates a modification that performs a scaling in a given direction with a fixpoint
Public methodTo2D
Public methodStatic memberTransform
Constructs a ModOp, that maps the Src coordinate system to the Dst coordinate system
Public methodStatic memberTranslate(GeoVector)
Constructs a ModOp, that performs a translation by the given offset vector
Public methodStatic memberTranslate(Double, Double, Double)
Constructs a ModOp, that performs a translation by the given offsets

Operators

  NameDescription
Public operatorStatic memberMultiply(ModOp, GeoPoint)
Modifies the given point by this modification.
Public operatorStatic memberMultiply(ModOp, GeoPoint2D)
Modifies the given 2d point by this modification. The point is assumed in the x/y plane
Public operatorStatic memberMultiply(ModOp, GeoVector)
Modifies the given vector by this modification
Public operatorStatic memberMultiply(ModOp, GeoVector2D)
Modifies the given 2d vector by this modification, The vector is assumed in the x/y plane
Public operatorStatic memberMultiply(ModOp, ModOp)
Combines two modification into one modification. If two modifications have to be applied to several GeoPoints or GeoVectors or to [!:IGeoObject]s it is faster to use the combination.
Public operatorStatic memberMultiply(ModOp, Double)
Multiplies the double value by the scaling factor of this modification

Properties

  NameDescription
Public propertyDeterminant
Returns the determinant of the matrix of this modification.
Public propertyFactor
Gets the scaling factor if appropriate
Public propertyStatic memberIdentity
Creates a modification that leaves everything unchanged.
Public propertyIsIsogonal
Same as IsOrthogonal
Public propertyIsNull
Returns true for ModOps that are 0.0 in all components. Uninitialized ModOp objects will return true. Usually used for a test, whether it has been initialized, since a 0 ModOp shouldn't occur in normal circumstances.
Public propertyIsOrthogonal
Returns true if orthogonal vectors stay orthogonal after transformation
Public propertyMatrix
Gets or sets the Matrix that defines this mmodification
Public propertyMode
Gets the kind of operation this ModOp performs.
Public propertyOriented
Gets the orientation of this ModOp. True means orientation is preserved (e.g. lefthanded), false means orientation is reversed (lefthanded to righthanded and vice versa).
Public propertyTranslation
Returns the translation vector of this ModOp

Explicit Interface Implementations

See Also