MathUtility.GetVectorLength method (1 of 2)

Calculates the Length of a vector without using System.Windows.Vector

public static double GetVectorLength(double vectorX, double vectorY)
parameter description
vectorX The X coordinate of Vector.
vectorY The Y coordinate of Vector.

Return Value

The Length of the vector that points in the specified direction.

See Also


MathUtility.GetVectorLength method (2 of 2)

Calculates the Length of a vector without using System.Windows.Vector

public static double GetVectorLength(double pt1X, double pt1Y, double pt2X, double pt2Y)
parameter description
pt1X The X coordinate of Starting point.
pt1Y The Y coordinate of Starting point.
pt2X The X coordinate of Ending point.
pt2Y The Y coordinate of Ending point.

Return Value

The Length of the vector that points in the specified direction.

See Also