Roblox-File-Format/DataTypes/NumberRange.cs
CloneTrooper1019 795018e243 Switch root namespace to "RobloxFiles"
In case there are any future libraries written for Roblox in C#, I want to avoid running into any namespace collisions. Its best to keep everything pertaining to this project nested in its own unique namespace.
2019-02-01 11:19:20 -06:00

25 lines
491 B
C#

using System;
namespace RobloxFiles.DataTypes
{
public struct NumberRange
{
public readonly float Min;
public readonly float Max;
public NumberRange(float min, float max)
{
if (max - min < 0)
throw new Exception("NumberRange: invalid range");
Min = min;
Max = max;
}
public override string ToString()
{
return string.Join(" ", Min, Max);
}
}
}