-<h1 id="jcs_mathf">JCS_Mathf</h1><p>Math library class.<h2 id="functions">Functions</h2><table><thead><tr><th id="name" style="text-align:left">Name<th id="description" style="text-align:left">Description<tbody><tr><td style="text-align:left">AbsoluteValue<td style="text-align:left">Returns the absolute value from a pass in value.<tr><td style="text-align:left">ToPositive<td style="text-align:left">Returns a positive value of the pass in value.<tr><td style="text-align:left">ToNegative<td style="text-align:left">Returns a negative value of the pass in value.<tr><td style="text-align:left">IsPositive<td style="text-align:left">Check if the value is positive.<tr><td style="text-align:left">IsNegative<td style="text-align:left">Check if the value is negative.<tr><td style="text-align:left">ToReverse<td style="text-align:left">Reverse a value, turn negative to positive, turn positive to negative.<tr><td style="text-align:left">Reciprocal<td style="text-align:left">Reciprocal the value pass in.<tr><td style="text-align:left">Sqr<td style="text-align:left">Square root the value pass in.<tr><td style="text-align:left">DistanceOfUnitVector<td style="text-align:left">Returns the distacne of the two floats.<tr><td style="text-align:left">IsOdd<td style="text-align:left">Check if the value is the odd number.<tr><td style="text-align:left">IsEven<td style="text-align:left">Check if the value is a even number.<tr><td style="text-align:left">FindMiddleIndex<td style="text-align:left">Returns the center of the array length.<tr><td style="text-align:left">OverFlowIndex<td style="text-align:left">Returns index that are overflow within the array length.<tr><td style="text-align:left">ApproachTo<td style="text-align:left">Make value approach to the target value by increment/decrement one.<tr><td style="text-align:left">IsInfinity<td style="text-align:left">Check if the value is infinity?<tr><td style="text-align:left">Min<td style="text-align:left">Returns the mininum value.<tr><td style="text-align:left">Max<td style="text-align:left">Returns the maxinum value.<tr><td style="text-align:left">IsNaN<td style="text-align:left">Check if the number is invalid.<tr><td style="text-align:left">LawOfSine<td style="text-align:left">Do law of sin.<tr><td style="text-align:left">LawOfConsine<td style="text-align:left">Do law of cosine.<tr><td style="text-align:left">IsPossible<td style="text-align:left">Use to check if something is possible by pasing in the percentage. (0% ~ 100%)<tr><td style="text-align:left">PythagoreanTheorem<td style="text-align:left">Do pythagorean theorem.<tr><td style="text-align:left">GetSingleDigit<td style="text-align:left">Get the number by passing in the target digit.<tr><td style="text-align:left">DigitCount<td style="text-align:left">Count the digit by pass in number. If the number is 0, it will returns 0.<tr><td style="text-align:left">DigitCountIncludeZero<td style="text-align:left">Count the digit by pass in number. If the number is 0, it will returns 1.<tr><td style="text-align:left">CrossMultiply<td style="text-align:left">Cross multiple a group of number.<tr><td style="text-align:left">DegreeToRadian<td style="text-align:left">Convert degree to radian.<tr><td style="text-align:left">RadianToDegree<td style="text-align:left">Convert radian to degree.<tr><td style="text-align:left">Cos<td style="text-align:left">Cosine in degree.<tr><td style="text-align:left">Sin<td style="text-align:left">Sine in degree.<tr><td style="text-align:left">Tan<td style="text-align:left">Tangent in degree.<tr><td style="text-align:left">Truncate<td style="text-align:left">Truncate a decimal number.<tr><td style="text-align:left">GCD<td style="text-align:left">Find the greatest common factor.<tr><td style="text-align:left">GetSign<td style="text-align:left">Return the positive/negative 1 sign from VAL.<tr><td style="text-align:left">RotatePointAround<td style="text-align:left">Return a new position after rotate around the pivot.<tr><td style="text-align:left">RotatePointX<td style="text-align:left">RotatePoint by x axis<tr><td style="text-align:left">RotatePointY<td style="text-align:left">Rotate point by y axis.<tr><td style="text-align:left">RotatePointZ<td style="text-align:left">Rotate point by z axis.<tr><td style="text-align:left">CirclePositionX<td style="text-align:left">Find the point on the circle line base on the degree. (x-axis)<tr><td style="text-align:left">CirclePositionY<td style="text-align:left">Find the point on the circle line base on the degree. (y-axis)<tr><td style="text-align:left">CirclePositionZ<td style="text-align:left">Find the point on the circle line base on the degree. (z-axis)</table>
0 commit comments