Class VirgisVectorExtensions
Inherited Members
Namespace: Virgis
Assembly: cs.temp.dll.dll
Syntax
public static class VirgisVectorExtensions
Methods
Round(Vector3, Single)
Rounds a Vector3 in 3d to the nearest value divisible by roundTo
Declaration
public static Vector3 Round(this Vector3 vector3, float roundTo = 0.1F)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector3 | Vector 3 value |
Single | roundTo | rounding size |
Returns
Type | Description |
---|---|
Vector3 | Vector3 rounded value |
ToDxfVector3(Vector3d, CoordinateTransformation)
Cibvert vector3D in Y-up coordinate frame to a netDXF Vector3 in z-up coordinate frame using the optional CoordinateTranform to reproject the dpoint if present
Declaration
public static DXF.Vector3 ToDxfVector3(this Vector3d v, CoordinateTransformation transform = null)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | v | Vector3d |
CoordinateTransformation | transform | Coordinate Transform |
Returns
Type | Description |
---|---|
DXF.Vector3 | DXF.Vector3 |