CADability dotNET
The ModOp2D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModOp2D |
Creates a modification according to the given coefficients
|
Methods
Name | Description | |
---|---|---|
Fit(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.
| |
Fit(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.
| |
GetInverse |
Returns the inverse of this modification.
| |
PlaneToplane |
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.
| |
Rotate(SweepAngle) |
Creates a rotation about the origin
| |
Rotate(GeoPoint2D, SweepAngle) |
Creates a rotation about a fixpoint
| |
Scale(Double) | ||
Scale(Double, Double) | ||
Scale(GeoPoint2D, Double) | ||
To3D | ||
Translate(GeoVector2D) |
Creates a translation
| |
Translate(Double, Double) |
Creates a translation
| |
XYPart |
Returns a 2d ModOp which represents the 2d part of a 3d ModOp.
|
Operators
Name | Description | |
---|---|---|
Multiply(ModOp2D, GeoPoint2D) |
Modifies the given point by this modification.
| |
Multiply(ModOp2D, GeoVector2D) |
Modifies the given vector by this modification
| |
Multiply(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.
| |
Multiply(ModOp2D, Double) |
Multiplies the double value by the scaling factor of this modification
|
Properties
Name | Description | |
---|---|---|
Determinant |
Gets the determinant of this modification
| |
Factor |
Returns the scaling factor of this modification
| |
Identity |
Creates a modification which is the identity
| |
IsIdentity |
Returns true, if this modification is the identity.
| |
IsIsogonal | ||
IsNull | ||
Matrix |
Gets or sets the 3*2 Matrix that defines this mmodification
| |
Matrix2D | ||
Null |
Creates a modification which is null, i.e. no valid ModOp2D
|