Click or drag to resize

GeometryDecoderToVector2d Method

Converts the specified Autodesk.Revit.DB.UV to an equivalent Rhino.Geometry.Vector2d.

Namespace:  RhinoInside.Revit.Convert.Geometry
Assembly:  RhinoInside.Revit (in RhinoInside.Revit.dll) Version: 1.7.8130
Syntax
public static Rhino.Geometry.Vector2d ToVector2d(
	this Autodesk.Revit.DB.UV uvVector
)

Parameters

uvVector
Type: Autodesk.Revit.DB.UV
Revit uvVector to convert.

Return Value

Type: Rhino.Geometry.Vector2d
Rhino vector that is equivalent to the provided Revit uvPoint.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Autodesk.Revit.DB.UV. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
Using ToVector2d(UV) as extension method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Vector2d rhinoVector2d = revitUvVector.ToVector2d();
Using ToVector2d(UV) as static method:
using DB = Autodesk.Revit.DB;
using RhinoInside.Revit.Convert.Geometry;

Vector2d rhinoVector2d = GeometryEncoder.ToVector2d(revitUvVector)
See Also