Beispiel #1
0
 public static F32Vec3 Clamp(F32Vec3 a, F32Vec3 min, F32Vec3 max)
 {
     return(new F32Vec3(
                Fixed32.Clamp(a.RawX, min.RawX, max.RawX),
                Fixed32.Clamp(a.RawY, min.RawY, max.RawY),
                Fixed32.Clamp(a.RawZ, min.RawZ, max.RawZ)));
 }
Beispiel #2
0
 public static F32Vec4 Clamp(F32Vec4 a, F32Vec4 min, F32Vec4 max)
 {
     return(new F32Vec4(
                Fixed32.Clamp(a.RawX, min.RawX, max.RawX),
                Fixed32.Clamp(a.RawY, min.RawY, max.RawY),
                Fixed32.Clamp(a.RawZ, min.RawZ, max.RawZ),
                Fixed32.Clamp(a.RawW, min.RawW, max.RawW)));
 }
Beispiel #3
0
 public static F32 Clamp(F32 a, F32 min, F32 max)
 {
     return(FromRaw(Fixed32.Clamp(a.Raw, min.Raw, max.Raw)));
 }
Beispiel #4
0
 public static F32 Clamp01(F32 a)
 {
     return(FromRaw(Fixed32.Clamp(a.Raw, Fixed32.Zero, Fixed32.One)));
 }
Beispiel #5
0
 public static F32Vec2 Clamp(F32Vec2 a, F32Vec2 min, F32Vec2 max)
 {
     return(new F32Vec2(
                Fixed32.Clamp(a.RawX, min.RawX, max.RawX),
                Fixed32.Clamp(a.RawY, min.RawY, max.RawY)));
 }