3D STL MODEL FOR CNC Enclave item. 149400
In our studio we design high quality polygonal 3d models for CNC machines or 3d printers according to your preferences.
Vendor: 3d-149400
Category: Games
Reminder!
Order delivery time is 5-7 working days after payment
The link is sent to your email or messenger
- The models are compatible with all CNC machines
- We’ll adjust the STL to the required dimensions for free
- We’ll divide the model into parts for free.
Enclave .Maths
{
///
/// This class contains various math related functions.
///
public static class MathUtils
{
///
/// Returns the factorial of a given number.
///
/// The number to calculate the factorial of.
/// The factorial of the given number.
public static int Factorial(int n)
{
int result = 1;
for (int i = 1; i <= n; i++)
{
result *= i;
}
return result;
}
///
/// Returns the greatest common divisor of two numbers.
///
/// The first number.
/// The second number.
/// The greatest common divisor of the two numbers.
public static int GCD(int a, int b)
{
int result = 0;
while (b != 0)
{
result = b;
b = a % b;
a = result;
}
return result;