Transform
Description:
A transformation of the affine 3-space.
A transformation of the affine 3-space.
public static XYZ TransformPoint(XYZ point, Transform transform)
{
double x = point.X;
double y = point.Y;
double z = point.Z;
//transform basis of the old coordinate system in the new coordinate // system
XYZ b0 = transform.get_Basis(0);
XYZ b1 = transform.get_Basis(1);
XYZ b2 = transform.get_Basis(2);
XYZ origin = transform.Origin;
//transform the origin of the old coordinate system in the new
//coordinate system
double xTemp = x * b0.X + y * b1.X + z * b2.X + origin.X;
double yTemp = x * b0.Y + y * b1.Y + z * b2.Y + origin.Y;
double zTemp = x * b0.Z + y * b1.Z + z * b2.Z + origin.Z;
return new XYZ(xTemp, yTemp, zTemp);
}
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Transform(Transform) | None | The copy constructor. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AlmostEqual(Transform) | Boolean | Determines whether this transformation and the specified transformation are the same within the tolerance (1.0e-09). | |
| CreateReflection(Plane) | Transform | Creates a transform that represents a reflection across the given plane. | |
| CreateRotation(XYZ, Double) | Transform | Creates a transform that represents a rotation about the given axis at (0, 0, 0). | |
| CreateRotationAtPoint(XYZ, Double, XYZ) | Transform | Creates a transform that represents a rotation about the given axis at the specified point. | |
| CreateTranslation(XYZ) | Transform | Creates a transform that represents a translation via the specified vector. | |
| Dispose() | None | Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) | APIObject |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| Multiply(Transform) | Transform | Multiplies this transformation by the specified transformation and returns the result. | |
| OfPoint(XYZ) | XYZ | Applies the transformation to the point and returns the result. | |
| OfVector(XYZ) | XYZ | Applies the transform to the vector | |
| ScaleBasis(Double) | Transform | Scales the basis vectors of this transformation and returns the result. | |
| ScaleBasisAndOrigin(Double) | Transform | Scales the basis vectors and the origin of this transformation and returns the result. | |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Multiply(Transform, Transform) | Transform | Multiplies the two specified transforms. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Basis | XYZ | Defines the basis of the old coordinate system in the new coordinate system. | |
| BasisX | XYZ | The basis of the X axis of this transformation. | |
| BasisY | XYZ | The basis of the Y axis of this transformation. | |
| BasisZ | XYZ | The basis of the Z axis of this transformation. | |
| Determinant | double | The determinant of this transformation. | |
| HasReflection | bool | The boolean value that indicates whether this transformation produces reflection. | |
| Identity | Transform | The identity transformation. | |
| Inverse | Transform | The inverse transformation of this transformation. | |
| IsConformal | bool | The boolean value that indicates whether this transformation is conformal. | |
| IsIdentity | bool | The boolean value that indicates whether this transformation is an identity. | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. (Inherited from APIObject ) | APIObject |
| IsTranslation | bool | The boolean value that indicates whether this transformation is a translation. | |
| Origin | XYZ | Defines the origin of the old coordinate system in the new coordinate system. | |
| Scale | double | The real number that represents the scale of the transformation. |