A transformation in 3D (3x3 linear transformation matrix + translation vector).
More...
Inherits IEquatable< Transform >, and IComparable< Transform >.
|
| static Transform | FromString (string transform) |
| | Parses a transform string value and returns a transform instance. More...
|
| |
|
static Vector | inverseTransform (Vector v, Transform tm) |
| | Inverse-transform a point with a transform. The transform must have an orthonormal matrix (no scaling).
|
| |
|
static bool | operator!= (Transform t0, Transform t1) |
| |
|
static Transform | operator* (float factor, Transform tm) |
| |
|
static Transform | operator* (Transform left, Transform right) |
| |
|
static Transform | operator* (Transform tm, float factor) |
| |
|
static Vector | operator* (Transform tm, Vector v) |
| |
|
static Transform | operator+ (Transform left, Transform right) |
| |
|
static Transform | operator- (Transform left, Transform right) |
| |
|
static Transform | operator- (Transform tm) |
| |
|
static Transform | operator/ (Transform tm, float divisor) |
| |
|
static bool | operator== (Transform t0, Transform t1) |
| |
|
|
Matrix | Matrix [get] |
| | Returns the matrix component (rotation + scale).
|
| |
|
Vector | Offset [get] |
| | Returns the offset (translation).
|
| |
A transformation in 3D (3x3 linear transformation matrix + translation vector).
◆ Transform() [1/2]
A constructor that requires a matrix and a vector offset.
- Parameters
-
| matrix | The matrix transform. |
| offset | The vector offset. |
◆ Transform() [2/2]
| VRay.Transform.Transform |
( |
float |
d | ) |
|
Constructor to either the zero or the identity transformation.
- Parameters
-
| d | Constructs the transformation with the specified value for the main matrix diagonal. If this is 0, the transformation is initialized to the zero transformation; if this is 1, the transformation is initialized to the identity transformation. |
◆ CompareTo()
| int VRay.Transform.CompareTo |
( |
Transform |
transform | ) |
|
Compares the transforms.
- Parameters
-
| transform | The transform to compare to |
- Returns
- -1 if this transform is less than the passed one, 0 if they are equal, +1 if greater.
◆ FromString()
| static Transform VRay.Transform.FromString |
( |
string |
transform | ) |
|
|
static |
Parses a transform string value and returns a transform instance.
- Parameters
-
| transform | The string representation of the transform. |
- Returns
- The transform instance.
◆ ReplaceMatrix()
◆ ReplaceOffset()
Returns a new Transform with its Offset replaced with the given one.
- Parameters
-
| offset | The new Offset to replace the old one. |
- Returns
- A new Transform with replaced Offset.
◆ Rotate()
Returns a new Transform with a rotation applied after the current transformation
- Parameters
-
| axis | The axis to rotate around. The length of the axis is the tangent of the angle of rotation. |
- Returns
- The new Transform
◆ Scale()
Returns a new Transform with a scale applied after the current transformation
- Parameters
-
| scale | The axes to scale by |
- Returns
- The new Transform
◆ Translate()
The documentation for this struct was generated from the following file:
- /home/jenkins/ci/cgrepo/appsdk/VRay_SDK_CSharp/VRay_SDK_CSharp/Types/Transform.cs