Struct Vector2Range
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GameKit.Dependencies.Utilities.Types
Assembly: GameKit.Dependencies.dll
Syntax
[Serializable]
public struct Vector2Range
Constructors
Vector2Range(FloatRange, FloatRange)
Declaration
public Vector2Range(FloatRange minimum, FloatRange maximum)
Parameters
Type | Name | Description |
---|---|---|
FloatRange | minimum | |
FloatRange | maximum |
Vector2Range(Vector2, Vector2)
Declaration
public Vector2Range(Vector2 minimum, Vector2 maximum)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2 | minimum | |
UnityEngine.Vector2 | maximum |
Fields
X
Minimum range.
Declaration
public FloatRange X
Field Value
Type | Description |
---|---|
FloatRange |
Y
Maximum range.
Declaration
public FloatRange Y
Field Value
Type | Description |
---|---|
FloatRange |
Methods
RandomInclusive()
Returns a random value between Minimum and Maximum.
Declaration
public Vector2 RandomInclusive()
Returns
Type | Description |
---|---|
UnityEngine.Vector2 |