Click or drag to resize

Transform3 Structure

3-dimensional transformation represented by a 4x4 matrix.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public struct Transform3 : IComparable<Transform3>, 
	IEquatable<Transform3>

The Transform3 type exposes the following members.

Constructors
  NameDescription
Public methodTransform3
Create transformation from row-major order matrix array.
Top
Properties
  NameDescription
Public propertyDeterminant
The determinant of this 4x4 matrix.
Public propertyStatic memberIdentity
Gets a new identity transform matrix. An identity matrix defines no transformation.
Public propertyItem
Gets or sets the matrix value at the given row and column indixes.
Public propertyM00
Gets or sets this[0,0].
Public propertyM01
Gets or sets this[0,1].
Public propertyM02
Gets or sets this[0,2].
Public propertyM03
Gets or sets this[0,3].
Public propertyM10
Gets or sets this[1,0].
Public propertyM11
Gets or sets this[1,1].
Public propertyM12
Gets or sets this[1,2].
Public propertyM13
Gets or sets this[1,3].
Public propertyM20
Gets or sets this[2,0].
Public propertyM21
Gets or sets this[2,1].
Public propertyM22
Gets or sets this[2,2].
Public propertyM23
Gets or sets this[2,3].
Public propertyM30
Gets or sets this[3,0].
Public propertyM31
Gets or sets this[3,1].
Public propertyM32
Gets or sets this[3,2].
Public propertyM33
Gets or sets this[3,3].
Top
Methods
  NameDescription
Public methodStatic memberChangeBasis(Plane3, Plane3)
Computes a change of basis transformation. A basis change is essentially a remapping of geometry from one coordinate system to another.
Public methodStatic memberChangeBasis(Vector3, Vector3, Vector3, Vector3, Vector3, Vector3)
Computes a change of basis transformation. A basis change is essentially a remapping of geometry from one coordinate system to another.
Public methodCompareTo
Compares this transform with another transform.

M33 has highest value, then M32, etc..

Public methodEquals(Object)
Determines if another object is a transform and its value equals this transform value.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Transform3)
Determines if another transform equals this transform value.
Public methodGetHashCode
Gets a non-unique hashing code for this transform.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMirror(Plane3)
Constructs a new Mirror transformation.
Public methodStatic memberMirror(Point3, Vector3)
Create mirror transformation matrix The mirror transform maps a point Q to Q - (2*(Q-P)oN)*N, where P = pointOnMirrorPlane and N = normalToMirrorPlane.
Public methodStatic memberMultiply
Multiplies (combines) two transformations.

This is the same as the * operator between two transformations.

Public methodStatic memberMultiplyPoint
transform a point
Public methodStatic memberMultiplyVector
apply a transformation to a vector
Public methodStatic memberPlanarProjection
Constructs a projection transformation.
Public methodStatic memberPlaneToPlane
Change basis of transformation
Public methodStatic memberRotation(Double, Point3)
Constructs a new rotation transformation with specified angle and rotation center.
Public methodStatic memberRotation(Double, Vector3, Point3)
Constructs a new rotation transformation with specified angle, rotation center and rotation axis.
Public methodStatic memberRotation(Vector3, Vector3, Point3)
Constructs a new rotation transformation with start and end directions and rotation center.
Public methodStatic memberRotation(Double, Double, Vector3, Point3)
Constructs a new rotation transformation with specified angle, rotation center and rotation axis.
Public methodStatic memberRotation(Vector3, Vector3, Vector3, Vector3, Vector3, Vector3)
Constructs a transformation that maps X0 to X1, Y0 to Y1, Z0 to Z1.
Public methodStatic memberScale
Constructs a new non-uniform scaling transformation with a specified scaling anchor point.
Public methodStatic memberShear
Constructs a Shear transformation.
Public methodToFloatArray
Return the matrix as a linear array of 16 float values
Public methodToString
Returns a string representation of this transform.
(Overrides ValueTypeToString.)
Public methodTransformPoints
Given a list, an array or any enumerable set of points, computes a new array of tranformed points.
Public methodStatic memberTranslation(Vector3)
Constructs a new translation (move) transformation.
Public methodStatic memberCode exampleTranslation(Double, Double, Double)
Constructs a new translation (move) transformation. Right column is (dx, dy, dz, 1.0).
Public methodTranspose
Flip row/column values
Public methodTryGetInverse
Attempts to get the inverse transform of this transform.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines if two transformations are equal in value.
Public operatorStatic memberInequality
Determines if two transformations are different in value.
Public operatorStatic memberMultiply
Multiplies (combines) two transformations.
Top
See Also