DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="0.9.0" />

 IVectorEntity

double Length { get; }

Get the length of the vector - otherwise known as the Euclidean norm

double X { get; }

Get the X component of a Vector

double Y { get; }

Get the Y component of a Vector

double Z { get; }

Get the Z component of a Vector

Add a vector

double AngleBetween(IVectorEntity otherVector)

Returns the angle between the two Vectors, in degrees

Get the Point with the same X, Y, and Z component

Form the cross product of two vectors

double Dot(IVectorEntity vec)

Form the dot product of two vectors

Determine whether two vectors ae almost equal

Determine whether two vectors are parallel or not

Get the normalized version of a vector

Get the reverse of the vector. Essentially this negates the X, Y, and Z components of the Vector.

IVectorEntity Rotate(IVectorEntity axis, double degrees = 0)

Rotates a Vector around an axis by a specified number of degrees

IVectorEntity Rotate(IPlaneEntity origin, double degrees = 0)

Rotates a vector around the Plane origin and normal by a specified degree

IVectorEntity Scale(double scale_factor = 1)

Scale Vector uniformly around the origin

IVectorEntity Scale(double xScaleFactor = 1, double yScaleFactor = 1, double zScaleFactor = 1)

Scale Vector non-uniformly around the origin

Subtract a vector

Transform this Vector by input CoordinateSystem matrix.