Transform2D Class

Transform2D Class

An affine transform of 2D Euclidean space.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBTransform2D

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public class Transform2D : IDisposable
Public Class Transform2D
	Implements IDisposable
public ref class Transform2D : IDisposable
type Transform2D = 
    class
        interface IDisposable
    end

The Transform2D type exposes the following members.

Constructors
 NameDescription
Public methodTransform2D(Transform2D) The copy constructor.
Public methodTransform2D(UV, UV, UV) Constructs the transformation by specifying the vectors and the origin.
Top
Properties
 NameDescription
Public propertyBasisU The image of (1, 0) under OfVector(UV).
Public propertyBasisV The image of (0, 1) under OfVector(UV).
Public propertyDeterminant The determinant of this transformation.
Public propertyHasReflection The boolean value that indicates whether this transformation produces reflection (i.e., is orientation-reversing).
Public propertyIsConformal The boolean value that indicates whether this transformation is conformal.
Public propertyIsIdentity The boolean value that indicates whether this transformation is an identity.
Public propertyIsTranslation The boolean value that indicates whether this transformation is a translation.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyOrigin The image of (0, 0) under OfPoint(UV). This defines the translational part of the transform.
Public propertyScale The real number that represents the scale of the conformal transformation.
Top
Methods
 NameDescription
Public methodAlmostEqual Determines whether this transformation and the specified transformation are the same within the tolerance (1.0e-09).
Public methodAssign Assigns values from the input transformation to this transformation.
Public methodStatic memberCreateIdentity Creates the identity transformation.
Public methodDisposeReleases all resources used by the Transform2D
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInverse Gets the inverse transformation of this transformation.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMultiply Multiplies this transformation by the specified transformation and returns the result.
Public methodOfPoint Applies the transformation to the point and returns the result.
Public methodOfVector Applies the transformation to the vector and returns the result.
Public methodPostScale Scales both the linear and translational parts of this transformation and returns the result.
Public methodPreScale Scales the linear part of this transformation and returns the result.
Public methodSetToIdentity Set this TrfUV to the identity transform.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTransformUVDomainIfPossible Transforms an envelope (BoundingBoxUV) for one surface to an envelope for a coincident but differently parameterized surface.
Top
Remarks
An affine transform is a linear transform plus a translation (which may be zero). Some functions only accept certain kinds of transform (e.g., rigid motion, conformal, non-singular, etc.).
See Also