Skip to content

Vector4Extensions

Namespace: SideXP.Core

public static class Vector4Extensions

Extension functions for Vector4 values.

Methods

Min(Vector4, float)

public static Vector4 Min(Vector4 vector, float min)

Returns a new Vector4 with its values superior or equal to the given minimum value.

Parameters

  • vector: The input vector to compute.
  • min: The minimum value of the given vector.

Returns

Returns the computed vector.

Max(Vector4, float)

public static Vector4 Max(Vector4 vector, float max)

Returns a new Vector4 instance with its values inferior or equal to the given maximum value.

Parameters

  • max: The maximum value of the given vector.