From 950b67dde19ce897f7a9f578dce33507b1e6cade Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Mon, 24 Jul 2023 20:45:06 -0400 Subject: [PATCH] whoops, forgor to change this --- Nerd_STF/Mathematics/Geometry/Box2D.cs | 8 ++++---- Nerd_STF/Mathematics/Geometry/Box3D.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Nerd_STF/Mathematics/Geometry/Box2D.cs b/Nerd_STF/Mathematics/Geometry/Box2D.cs index 5f323fe..1691184 100644 --- a/Nerd_STF/Mathematics/Geometry/Box2D.cs +++ b/Nerd_STF/Mathematics/Geometry/Box2D.cs @@ -45,7 +45,7 @@ public record class Box2d : IAbsolute, IAverage, ICeiling, set => size[index] = value; } - public static Box2d Absolute(Box2d val) => new(Float3.Absolute(val.MinFloat3), Float3.Absolute(val.MaxFloat3)); + public static Box2d Absolute(Box2d val) => new(Float3.Absolute(val.MinVert), Float3.Absolute(val.MaxVert)); public static Box2d Average(params Box2d[] vals) { (Float3[] centers, Float2[] sizes) = SplitArray(vals); @@ -94,15 +94,15 @@ public record class Box2d : IAbsolute, IAverage, ICeiling, protected virtual bool PrintMembers(StringBuilder builder) { builder.Append("Min = "); - builder.Append(MinFloat3); + builder.Append(MinVert); builder.Append(", Max = "); - builder.Append(MaxFloat3); + builder.Append(MaxVert); return true; } public static Box2d operator +(Box2d a, Float3 b) => new(a.center + b, a.size); public static Box2d operator +(Box2d a, Float2 b) => new(a.center, a.size + b); - public static Box2d operator -(Box2d b) => new(-b.MaxFloat3, -b.MinFloat3); + public static Box2d operator -(Box2d b) => new(-b.MaxVert, -b.MinVert); public static Box2d operator -(Box2d a, Float3 b) => new(a.center - b, a.size); public static Box2d operator -(Box2d a, Float2 b) => new(a.center, a.size - b); public static Box2d operator *(Box2d a, float b) => new(a.center * b, a.size * b); diff --git a/Nerd_STF/Mathematics/Geometry/Box3D.cs b/Nerd_STF/Mathematics/Geometry/Box3D.cs index 18141a7..3d527b7 100644 --- a/Nerd_STF/Mathematics/Geometry/Box3D.cs +++ b/Nerd_STF/Mathematics/Geometry/Box3D.cs @@ -48,7 +48,7 @@ public record class Box3d : IAbsolute, IAverage, ICeiling, set => size[index] = value; } - public static Box3d Absolute(Box3d val) => new(Float3.Absolute(val.MinFloat3), Float3.Absolute(val.MaxFloat3)); + public static Box3d Absolute(Box3d val) => new(Float3.Absolute(val.MinVert), Float3.Absolute(val.MaxVert)); public static Box3d Average(params Box3d[] vals) { (Float3[] centers, Float3[] sizes) = SplitArray(vals); @@ -99,14 +99,14 @@ public record class Box3d : IAbsolute, IAverage, ICeiling, protected virtual bool PrintMembers(StringBuilder builder) { builder.Append("Min = "); - builder.Append(MinFloat3); + builder.Append(MinVert); builder.Append(", Max = "); - builder.Append(MaxFloat3); + builder.Append(MaxVert); return true; } public static Box3d operator +(Box3d a, Float3 b) => new(a.center + b, a.size); - public static Box3d operator -(Box3d b) => new(-b.MaxFloat3, -b.MinFloat3); + public static Box3d operator -(Box3d b) => new(-b.MaxVert, -b.MinVert); public static Box3d operator -(Box3d a, Float3 b) => new(a.center - b, a.size); public static Box3d operator *(Box3d a, float b) => new(a.center * b, a.size * b); public static Box3d operator *(Box3d a, Float3 b) => new(a.center, a.size * b);