Click or drag to resize

Vector2FGetClamp Method

Restricts the current instance of Vector2F to be within a specified range and returns the clamped value.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public Vector2F GetClamp(
	Vector2F min,
	Vector2F max
)

Parameters

min
Type: NeoAxisVector2F
The minimum value.
max
Type: NeoAxisVector2F
The maximum value.

Return Value

Type: Vector2F
The clamped instance of Vector2F.
See Also