|
Vector2DistanceSquared Method
|
Returns the Euclidean distance squared between the two given points.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static double DistanceSquared(
Vector2 value1,
Vector2 value2
)
Public Shared Function DistanceSquared (
value1 As Vector2,
value2 As Vector2
) As Double
public:
static double DistanceSquared(
Vector2 value1,
Vector2 value2
)
static member DistanceSquared :
value1 : Vector2 *
value2 : Vector2 -> float
Parameters
- value1
- Type: Karamba.GeometryVector2
The first point. - value2
- Type: Karamba.GeometryVector2
The second point.
Return Value
Type:
DoubleThe distance squared.
See Also