30 public static FP
Pi = FP.Pi;
58 #region public static FP Sqrt(FP number) 59 public static FP
Sqrt(FP number) {
60 return FP.Sqrt(number);
70 #region public static FP Max(FP val1, FP val2) 71 public static FP
Max(FP val1, FP val2) {
72 return (val1 > val2) ? val1 : val2;
82 #region public static FP Min(FP val1, FP val2) 83 public static FP
Min(FP val1, FP val2) {
84 return (val1 < val2) ? val1 : val2;
95 #region public static FP Max(FP val1, FP val2,FP val3) 96 public static FP
Max(FP val1, FP val2, FP val3) {
97 FP max12 = (val1 > val2) ? val1 : val2;
98 return (max12 > val3) ? max12 : val3;
109 #region public static FP Clamp(FP value, FP min, FP max) 110 public static FP
Clamp(FP value, FP min, FP max) {
111 value = (value > max) ? max : value;
112 value = (value < min) ? min : value;
122 #region public static void Absolute(ref JMatrix matrix,out JMatrix result) 124 result.M11 = FP.Abs(matrix.M11);
125 result.M12 = FP.Abs(matrix.M12);
126 result.M13 = FP.Abs(matrix.M13);
127 result.M21 = FP.Abs(matrix.M21);
128 result.M22 = FP.Abs(matrix.M22);
129 result.M23 = FP.Abs(matrix.M23);
130 result.M31 = FP.Abs(matrix.M31);
131 result.M32 = FP.Abs(matrix.M32);
132 result.M33 = FP.Abs(matrix.M33);
139 public static FP
Sin(FP value) {
140 return FP.Sin(value);
146 public static FP
Cos(FP value) {
147 return FP.Cos(value);
153 public static FP
Tan(FP value) {
154 return FP.Tan(value);
160 public static FP
Asin(FP value) {
161 return FP.Asin(value);
167 public static FP
Acos(FP value) {
168 return FP.Acos(value);
174 public static FP
Atan(FP value) {
175 return FP.Atan(value);
181 public static FP
Atan2(FP y, FP x) {
182 return FP.Atan2(y, x);
189 return FP.Floor(value);
204 return FP.Round(value);
211 public static int Sign(FP value) {
212 return FP.Sign(value);
219 public static FP
Abs(FP value) {
220 return FP.Abs(value);
static void Absolute(ref TSMatrix matrix, out TSMatrix result)
Changes every sign of the matrix entry to '+'
static FP Min(FP val1, FP val2)
Gets the minimum number of two values.
static FP Tan(FP value)
Returns the tan of value.
static FP Rad2Deg
Radians to degree constant.
static FP Max(FP val1, FP val2, FP val3)
Gets the maximum number of three values.
static FP Cos(FP value)
Returns the cosine of value.
static FP Ceiling(FP value)
Returns the smallest integral value that is greater than or equal to the specified number...
static FP Round(FP value)
Rounds a value to the nearest integral value. If the value is halfway between an even and an uneven v...
static FP Atan2(FP y, FP x)
Returns the arc tan of coordinates x-y.
static FP Deg2Rad
Degree to radians constant.
static FP Asin(FP value)
Returns the arc sine of value.
static FP Clamp(FP value, FP min, FP max)
Returns a number which is within [min,max]
Contains common math operations.
static FP Floor(FP value)
Returns the largest integer less than or equal to the specified number.
static FP PiOver2
PI over 2 constant.
static FP Max(FP val1, FP val2)
Gets the maximum number of two values.
static FP Sqrt(FP number)
Gets the square root.
static FP Abs(FP value)
Returns the absolute value of a Fix64 number. Note: Abs(Fix64.MinValue) == Fix64.MaxValue.
static FP Atan(FP value)
Returns the arc tan of value.
static FP Sin(FP value)
Returns the sine of value.
static FP Acos(FP value)
Returns the arc cosine of value.
static FP Epsilon
A small value often used to decide if numeric results are zero.
static int Sign(FP value)
Returns a number indicating the sign of a Fix64 number. Returns 1 if the value is positive...