joou.UMath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glm Show documentation
Show all versions of glm Show documentation
Java OpenGL Mathematics is a library for graphics software based on the OpenGL Shading Language specifications
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package joou;
/**
*
* @author GBarbieri
*/
public class UMath {
public static UByte max(UByte a, UByte b) {
return a.compareTo(b) > 0 ? a : b;
}
public static UInt max(UInt a, UInt b) {
return a.compareTo(b) > 0 ? a : b;
}
public static ULong max(ULong a, ULong b) {
return a.compareTo(b) > 0 ? a : b;
}
public static UShort max(UShort a, UShort b) {
return a.compareTo(b) > 0 ? a : b;
}
public static UByte min(UByte a, UByte b) {
return a.compareTo(b) < 0 ? a : b;
}
public static UInt min(UInt a, UInt b) {
return a.compareTo(b) < 0 ? a : b;
}
public static ULong min(ULong a, ULong b) {
return a.compareTo(b) < 0 ? a : b;
}
public static UShort min(UShort a, UShort b) {
return a.compareTo(b) < 0 ? a : b;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy