1
0
mirror of synced 2024-12-01 10:37:25 +01:00
Switch-Toolbox/Switch_Toolbox_Library/Util/OpenGLUtils.cs

31 lines
816 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenTK;
namespace Toolbox.Library
{
public class OpenGLUtils
{
public static Vector3 GetMax(Vector3 value1, Vector3 value2)
{
Vector3 val = new Vector3(0);
val.X = Math.Max(value1.X, value2.X);
val.Y = Math.Max(value1.Y, value2.Y);
val.Z = Math.Max(value1.Z, value2.Z);
return val;
}
public static Vector3 GetMin(Vector3 value1, Vector3 value2)
{
Vector3 val = new Vector3(0);
val.X = Math.Min(value1.X, value2.X);
val.Y = Math.Min(value1.Y, value2.Y);
val.Z = Math.Min(value1.Z, value2.Z);
return val;
}
}
}