Table of Contents

Method b3Clamp

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3Clamp(Vector3, Vector3, Vector3)

Clamps a vector component-wise to a range.

public static Vector3 b3Clamp(Vector3 a, Vector3 lower, Vector3 upper)

Parameters

a Vector3

The vector to clamp.

lower Vector3

The lower bound.

upper Vector3

The upper bound.

Returns

Vector3

The clamped vector.