Skip to content

UV

Public Class

Object representing coordinates in 2-dimensional space.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.UV

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class UV

The UV type exposes the following members.

Constructors

Name

Description


Public Method
UV.

Creates a default UV with the values (0, 0).


Public Method
UV(Double, Double)

Creates a UV with the supplied coordinates.


Properties

Name

Description


Public Property
Static Member
BasisU

The basis of the U axis.


Public Property
Static Member
BasisV

The basis of the V axis.


Public Property

Public Property

Gets the first coordinate.


Public Property

Gets the second coordinate.


Public Property
Static Member
Zero

The coordinate origin or zero 2-D vector.


Methods

Name

Description


Public Method
Add

Adds the specified 2-D vector to this 2-D vector and returns the result.


Public Method
AngleTo

Returns the angle between this vector and the specified vector.


Public Method
CrossProduct

The cross product of this 2-D vector and the specified 2-D vector.


Public Method
DistanceTo

Returns the distance from this 2-D point to the specified 2-D point.


Public Method
Divide

Divides this 2-D vector by the specified value and returns the result.


Public Method
DotProduct

The dot product of this 2-D vector and the specified 2-D vector.


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
GetLength

The length of this 2-D vector.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

Determines whether this 2-D vector and the specified 2-D vector are the same within the tolerance (1.0e-09).


Public Method

Determines whether this 2-D vector and the specified 2-D vector are the same within a specified tolerance.


Public Method
IsUnitLength

The boolean value indicates whether this 2-D vector is of unit length.


Public Method
IsZeroLength

The boolean value indicates whether this 2-D vector is a zero vector.


Public Method
Multiply

Multiplies this 2-D vector by the specified value and returns the result.


Public Method
Negate

Negates this 2-D vector.


Public Method
Normalize

Returns a new UV whose coordinates are the normalized values from this vector.


Public Method
Subtract

Subtracts the specified 2-D vector from this 2-D vector and returns the result.


Public Method

Gets formatted string showing (U, V) with values formatted to 9 decimal places.
(Overrides Object.ToString.)


Operators

Name

Description


Public Operator
Static Member
Addition(UV, UV)

Adds the two specified 2-D vectors and returns the result.


Public Operator
Static Member
Division(UV, Double)

Divides the specified 2-D vector by the specified value.


Public Operator
Static Member
Multiply(Double, UV)

The product of the specified number and the specified 2-D vector.


Public Operator
Static Member
Multiply(UV, Double)

The product of the specified number and the specified 2-D vector.


Public Operator
Static Member
Subtraction(UV, UV)

Subtracts the two specified 2-D vectors and returns the result.


Public Operator
Static Member
UnaryNegation(UV)

Negates this 2-D vector and returns the result.


Remarks

Usually this means parameters on a surface. In actual use, it could be interpreted as either point or vector in 2-dimensional space.