Click or drag to resize

CalculationsDistance Method (Vector2D, Vector2D, Axis, Boolean)

Calclulates the distance between the specified points in the specified axis.

Namespace:  LightBuzz
Assembly:  LightBuzz (in LightBuzz.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static float Distance(
	Vector2D start,
	Vector2D end,
	Axis axis,
	bool signed
)

Parameters

start
Type: LightBuzzVector2D
The first point/vector.
end
Type: LightBuzzVector2D
The second point/vector.
axis
Type: LightBuzzAxis
The axis to measure the distance in.
signed
Type: SystemBoolean
True if you want positive or negative distance. False if you only want the absolute value.

Return Value

Type: Single
The distance between the vectors in the measurement units used.
See Also