MathExtensions Class

Definition

Extension methods and helper functions for various math data

public ref class MathExtensions abstract sealed
public static class MathExtensions
type MathExtensions = class
Public Module MathExtensions
Inheritance
MathExtensions

Methods

ClampComponentWise(Vector3, Vector3, Vector3)
CubicToLinearIndex(Vector3Int, Vector3Int)
LinearToCubicIndex(Int32, Vector3Int)
MostSignificantBit(Int32)
PowerOfTwoGreaterThanOrEqualTo(Int32)
PowerOfTwoGreaterThanOrEqualTo(Vector3Int)
ResetIfGreaterThan(Int32, Int32)

Sets the value to zero if greater than the specified amount.

Applies to