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. |
The Length of the vector that points in the specified direction.
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. |
The Length of the vector that points in the specified direction.