예제 #1
0
 public static Number Cos(Number Value)
 {
     return(Sin(Value + 1.570796F));
 }
예제 #2
0
 public static bool AreEqual(Number Left, Number Right)
 {
     return(Abs(Left - Right) <= Epsilon);
 }
예제 #3
0
 public static bool IsZero(Number Value)
 {
     return(AreEqual(Value, 0));
 }
예제 #4
0
 public static Number Clamp(Number Value, Number Min, Number Max)
 {
     return(Value <Min?Min : Value> Max ? Max : Value);
 }
예제 #5
0
 public static Number Clamp01(Number Value)
 {
     return(Clamp(Value, 0, 1));
 }
예제 #6
0
        public static Number Ceil(Number Value)
        {
            Number floor = Floor(Value);

            return(Value - floor == 0 ? Value : Floor(Value) + 1);
        }
예제 #7
0
 public static Number Atan(Number Value)
 {
     return(Asin(Value / Sqrt(1 + (Value * Value))));
 }
예제 #8
0
 public static Number Tan(Number Value)
 {
     return(Sin(Value) / Cos(Value));
 }