Struct Math.FloatRange
Range of possible values for some constrained parameter.
Syntax
public struct FloatRange : IEquatable<Math.FloatRange>
Constructors
FloatRange(Single, Single)
Declaration
public FloatRange(float min, float max)
Parameters
Fields
Max
Declaration
Field Value
Min
Declaration
Field Value
Properties
Mid
Declaration
public float Mid { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(Math.FloatRange)
Declaration
public bool Equals(Math.FloatRange other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Sorted()
Returns a sorted copy of this instance.
Declaration
public Math.FloatRange Sorted()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Implicit(float2 to Math.FloatRange)
Declaration
public static implicit operator Math.FloatRange(float2 f)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float2 |
f |
|
Returns
Implicit(Math.FloatRange to float2)
Declaration
public static implicit operator float2(Math.FloatRange range)
Parameters
Returns
Type |
Description |
Unity.Mathematics.float2 |
|