IntExt ClassInt32 and UInt32 extensions.

Inheritance Hierarchy

System.Object
  UltimateXR.Extensions.System.Math.IntExt
Namespace: UltimateXR.Extensions.System.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static class IntExt


The IntExt type exposes the following members.

Methods

NameDescription
Public methodStatic memberClamp Clamps a value so that it doesn’t go beyond a given range.
Public methodStatic memberClamped Returns a clamped value.
Public methodStatic memberHasFlags(Int32, Int32) Checks if the given int value has one or more flags set.
Public methodStatic memberHasFlags(UInt32, UInt32) Checks if the given uint value has one or more flags set.
Public methodStatic memberWithFlags(Int32, Int32) Returns an int value with one or more flags set if they weren’t set already.
Public methodStatic memberWithFlags(UInt32, UInt32) Returns an uint value with one or more flags set if they weren’t set already.
Public methodStatic memberWithoutFlags(Int32, Int32) Returns an int value with one or more flags cleared if they were set.
Public methodStatic memberWithoutFlags(UInt32, UInt32) Returns an uint value with one or more flags cleared if they were set.

See Also

Reference

UltimateXR.Extensions.System.Math Namespace