MathCG

Static Class in ChivalrousGames.Common

Description

Chivalrous Games Math helper.

Methods

IsVector3Between
public static bool IsVector3Between(Vector3 toCheck, Vector3 boundary1, Vector3 boundary2);
Parameters
toCheck Vector3 Vector3 to check.
boundary1 Vector3 First Vector3 Boundary.
boundary2 Vector3 Second Vector3 Boundary.
Return
bool True if vector3 toCheck is between the specified boundary1 and boundary2; otherwise, false.
Description

Determines if vector3 toCheck is between the specified boundary1 and boundary2.