CADability dotNET
The ModOp type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModOp(array<Double,2>[,](,)[,][,]) | ||
ModOp(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) |
Creates a modification according to the given coefficients
|
Methods
Name | Description | |
---|---|---|
Fit(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.
| |
Fit(GeoPoint, array<GeoVector>[]()[][], GeoPoint, array<GeoVector>[]()[][]) | ||
GetInverse |
Returns the inverse of this modification.
| |
ReflectPlane()()()() |
Constructs a ModOp, that performs a reflection about the y/z plane
| |
ReflectPlane(Plane) |
Constructs a ModOp, that performs a reflection about the given plane
| |
ReflectPoint |
Constructs a ModOp, that performs a reflection about the given point
| |
Rotate(GeoVector, SweepAngle) |
Creates a modification that performs a rotation about an axis through the origina
| |
Rotate(GeoPoint, GeoVector, GeoVector) |
Creates a rotation around the fixpoint that moves the vector from to the vector to.
| |
Rotate(GeoPoint, GeoVector, SweepAngle) |
Creates a modification that performs a rotation about an axis through the given point
| |
Scale(Double) |
Creates a modification that performs a scaling about the origin
| |
Scale(GeoPoint, Double) |
Creates a modification that performs a scaling about a given point
| |
Scale(GeoVector, Double) |
Creates a modification that performs a scaling in a given direction
| |
Scale(Double, Double, Double) |
Creates a modification that performs a scaling with different factors
in x,y and z direction
| |
Scale(GeoPoint, GeoVector, Double) |
Creates a modification that performs a scaling in a given direction with a fixpoint
| |
To2D | ||
Transform |
Constructs a ModOp, that maps the Src coordinate system to the Dst coordinate system
| |
Translate(GeoVector) |
Constructs a ModOp, that performs a translation by the given offset vector
| |
Translate(Double, Double, Double) |
Constructs a ModOp, that performs a translation by the given offsets
|
Operators
Name | Description | |
---|---|---|
Multiply(ModOp, GeoPoint) |
Modifies the given point by this modification.
| |
Multiply(ModOp, GeoPoint2D) |
Modifies the given 2d point by this modification. The point is assumed in the x/y plane
| |
Multiply(ModOp, GeoVector) |
Modifies the given vector by this modification
| |
Multiply(ModOp, GeoVector2D) |
Modifies the given 2d vector by this modification, The vector is assumed in the x/y plane
| |
Multiply(ModOp, ModOp) | ||
Multiply(ModOp, Double) |
Multiplies the double value by the scaling factor of this modification
|
Properties
Name | Description | |
---|---|---|
Determinant |
Returns the determinant of the matrix of this modification.
| |
Factor |
Gets the scaling factor if appropriate
| |
Identity |
Creates a modification that leaves everything unchanged.
| |
IsIsogonal |
Same as IsOrthogonal | |
IsNull |
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.
| |
IsOrthogonal |
Returns true if orthogonal vectors stay orthogonal after transformation
| |
Matrix |
Gets or sets the Matrix that defines this mmodification
| |
Mode |
Gets the kind of operation this ModOp performs.
| |
Oriented |
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).
| |
Translation |
Returns the translation vector of this ModOp
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
ISerializable..::..GetObjectData |