2014-12-27 00:21:19 -07:00

32 lines
754 B
C#

namespace TrueCraft.API
{
/// <summary>
/// Represents the size of an object in 3D space.
/// </summary>
public struct Size
{
public double Depth;
public double Height;
public double Width;
public Size(double width, double height, double depth)
{
this.Width = width;
this.Height = height;
this.Depth = depth;
}
public Size(Size s)
{
this.Width = s.Width;
this.Height = s.Height;
this.Depth = s.Depth;
}
// TODO: More operators
public static Size operator /(Size a, double b)
{
return new Size(a.Width / b, a.Height / b, a.Depth / b);
}
}
}