Transform2D
An affine transform of 2D Euclidean space.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Transform2D
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Transform2D : IDisposable
The Transform2D type exposes the following members.
Constructors
Name
Description
Public Method
Transform2D(Transform2D)
The copy constructor.
Public Method
Transform2D(UV, UV, UV)
Constructs the transformation by specifying the vectors and the origin.
Properties
Name
Description
Public Property
BasisU
The image of (1, 0) under OfVector(UV).
Public Property
BasisV
The image of (0, 1) under OfVector(UV).
Public Property
Determinant
The determinant of this transformation.
Public Property
HasReflection
The boolean value that indicates whether this transformation produces reflection (i.e., is orientation-reversing).
Public Property
IsConformal
The boolean value that indicates whether this transformation is conformal.
Public Property
IsIdentity
The boolean value that indicates whether this transformation is an identity.
Public Property
IsTranslation
The boolean value that indicates whether this transformation is a translation.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
Origin
The image of (0, 0) under OfPoint(UV). This defines the translational part of the transform.
Public Property
Scale
The real number that represents the scale of the conformal transformation.
Methods
Name
Description
Public Method
AlmostEqual
Determines whether this transformation and the specified transformation are the same within the tolerance (1.0e-09).
Public Method
Assign
Assigns values from the input transformation to this transformation.
Public Method
Static Member
CreateIdentity
Creates the identity transformation.
Public Method
Dispose
Releases all resources used by the Transform2D
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetInverse
Gets the inverse transformation of this transformation.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
Multiply
Multiplies this transformation by the specified transformation and returns the result.
Public Method
OfPoint
Applies the transformation to the point and returns the result.
Public Method
OfVector
Applies the transformation to the vector and returns the result.
Public Method
PostScale
Scales both the linear and translational parts of this transformation and returns the result.
Public Method
PreScale
Scales the linear part of this transformation and returns the result.
Public Method
SetToIdentity
Set this TrfUV to the identity transform.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Public Method
TransformUVDomainIfPossible
Transforms an envelope ( BoundingBoxUV) for one surface to an envelope for a coincident but differently parameterized surface.
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.).