All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.Math Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2023 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.MidpointRounding;
import system.SByte;
import system.Single;
import system.Decimal;
import system.UInt16;
import system.UInt32;
import system.UInt64;


/**
 * The base .NET class managing System.Math, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Math *

* * Powered by JCOBridge: more info at https://www.jcobridge.com */ public class Math extends NetObject { /** * Fully assembly qualified name: System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e */ public static final String assemblyFullName = "System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"; /** * Assembly name: System.Private.CoreLib */ public static final String assemblyShortName = "System.Private.CoreLib"; /** * Qualified class name: System.Math */ public static final String className = "System.Math"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public Math(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link Math}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link Math} instance * @throws java.lang.Throwable in case of error during cast operation */ public static Math cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new Math(from.getJCOInstance()); } // Constructors section public Math() throws Throwable { } // Methods section public static byte Clamp(byte value, byte min, byte max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (byte)classType.Invoke("Clamp", value, min, max); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static byte Max(byte val1, byte val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (byte)classType.Invoke("Max", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static byte Min(byte val1, byte val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (byte)classType.Invoke("Min", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Abs(double value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Abs", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Acos(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Acos", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Acosh(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Acosh", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Asin(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Asin", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Asinh(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Asinh", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Atan(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Atan", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Atan2(double y, double x) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Atan2", y, x); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Atanh(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Atanh", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double BitDecrement(double x) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("BitDecrement", x); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double BitIncrement(double x) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("BitIncrement", x); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Cbrt(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Cbrt", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Ceiling(double a) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Ceiling", a); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Clamp(double value, double min, double max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Clamp", value, min, max); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double CopySign(double x, double y) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("CopySign", x, y); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Cos(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Cos", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Cosh(double value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Cosh", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Exp(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Exp", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Floor(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Floor", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double FusedMultiplyAdd(double x, double y, double z) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("FusedMultiplyAdd", x, y, z); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double IEEERemainder(double x, double y) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("IEEERemainder", x, y); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Log(double a, double newBase) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Log", a, newBase); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Log(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Log", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Log10(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Log10", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Log2(double x) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Log2", x); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Max(double val1, double val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Max", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double MaxMagnitude(double x, double y) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("MaxMagnitude", x, y); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Min(double val1, double val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Min", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double MinMagnitude(double x, double y) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("MinMagnitude", x, y); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Pow(double x, double y) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Pow", x, y); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double ReciprocalEstimate(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("ReciprocalEstimate", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double ReciprocalSqrtEstimate(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("ReciprocalSqrtEstimate", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Round(double value, int digits, MidpointRounding mode) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Round", value, digits, mode == null ? null : mode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Round(double value, int digits) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Round", value, digits); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Round(double value, MidpointRounding mode) throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.IndexOutOfRangeException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Round", value, mode == null ? null : mode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Round(double a) throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Round", a); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double ScaleB(double x, int n) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("ScaleB", x, n); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Sin(double a) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Sin", a); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Sinh(double value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Sinh", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Sqrt(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Sqrt", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Tan(double a) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Tan", a); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Tanh(double value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Tanh", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double Truncate(double d) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("Truncate", d); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static short Abs(short value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (short)classType.Invoke("Abs", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static short Clamp(short value, short min, short max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (short)classType.Invoke("Clamp", value, min, max); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static short Max(short val1, short val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (short)classType.Invoke("Max", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static short Min(short val1, short val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (short)classType.Invoke("Min", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Abs(int value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Abs", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Clamp(int value, int min, int max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Clamp", value, min, max); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int DivRem(int a, int b, JCORefOut result) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("DivRem", a, b, result.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int ILogB(double x) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("ILogB", x); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Max(int val1, int val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Max", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Min(int val1, int val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Min", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(double value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(short value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(int value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(long value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(SByte value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(Single value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.ArithmeticException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int Sign(Decimal value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("Sign", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long Abs(long value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("Abs", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long BigMul(int a, int b) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("BigMul", a, b); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long BigMul(long a, long b, JCORefOut low) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("BigMul", a, b, low.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long Clamp(long value, long min, long max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("Clamp", value, min, max); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long DivRem(long a, long b, JCORefOut result) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("DivRem", a, b, result.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long Max(long val1, long val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("Max", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long Min(long val1, long val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("Min", val1, val2); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static SByte Abs(SByte value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objAbs = (JCObject)classType.Invoke("Abs", value == null ? null : value.getJCOInstance()); return new SByte(objAbs); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static SByte Clamp(SByte value, SByte min, SByte max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new SByte(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static SByte Max(SByte val1, SByte val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new SByte(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static SByte Min(SByte val1, SByte val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new SByte(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Single Abs(Single value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objAbs = (JCObject)classType.Invoke("Abs", value == null ? null : value.getJCOInstance()); return new Single(objAbs); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Single Clamp(Single value, Single min, Single max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new Single(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Single Max(Single val1, Single val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new Single(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Single Min(Single val1, Single val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new Single(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Abs(Decimal value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objAbs = (JCObject)classType.Invoke("Abs", value == null ? null : value.getJCOInstance()); return new Decimal(objAbs); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Ceiling(Decimal d) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objCeiling = (JCObject)classType.Invoke("Ceiling", d == null ? null : d.getJCOInstance()); return new Decimal(objCeiling); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Clamp(Decimal value, Decimal min, Decimal max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new Decimal(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Floor(Decimal d) throws Throwable, system.ArgumentException, system.PlatformNotSupportedException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objFloor = (JCObject)classType.Invoke("Floor", d == null ? null : d.getJCOInstance()); return new Decimal(objFloor); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Max(Decimal val1, Decimal val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new Decimal(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Min(Decimal val1, Decimal val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new Decimal(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Round(Decimal d, int decimals, MidpointRounding mode) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objRound = (JCObject)classType.Invoke("Round", d == null ? null : d.getJCOInstance(), decimals, mode == null ? null : mode.getJCOInstance()); return new Decimal(objRound); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Round(Decimal d, int decimals) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objRound = (JCObject)classType.Invoke("Round", d == null ? null : d.getJCOInstance(), decimals); return new Decimal(objRound); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Round(Decimal d, MidpointRounding mode) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objRound = (JCObject)classType.Invoke("Round", d == null ? null : d.getJCOInstance(), mode == null ? null : mode.getJCOInstance()); return new Decimal(objRound); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Round(Decimal d) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objRound = (JCObject)classType.Invoke("Round", d == null ? null : d.getJCOInstance()); return new Decimal(objRound); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal Truncate(Decimal d) throws Throwable, system.NotSupportedException, system.ArgumentException, system.PlatformNotSupportedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objTruncate = (JCObject)classType.Invoke("Truncate", d == null ? null : d.getJCOInstance()); return new Decimal(objTruncate); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt16 Clamp(UInt16 value, UInt16 min, UInt16 max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new UInt16(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt16 Max(UInt16 val1, UInt16 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt16(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt16 Min(UInt16 val1, UInt16 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt16(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt32 Clamp(UInt32 value, UInt32 min, UInt32 max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new UInt32(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt32 Max(UInt32 val1, UInt32 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt32(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt32 Min(UInt32 val1, UInt32 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt32(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt64 BigMul(UInt64 a, UInt64 b, JCORefOut low) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objBigMul = (JCObject)classType.Invoke("BigMul", a == null ? null : a.getJCOInstance(), b == null ? null : b.getJCOInstance(), low.getJCRefOut()); return new UInt64(objBigMul); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt64 Clamp(UInt64 value, UInt64 min, UInt64 max) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objClamp = (JCObject)classType.Invoke("Clamp", value == null ? null : value.getJCOInstance(), min == null ? null : min.getJCOInstance(), max == null ? null : max.getJCOInstance()); return new UInt64(objClamp); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt64 Max(UInt64 val1, UInt64 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMax = (JCObject)classType.Invoke("Max", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt64(objMax); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt64 Min(UInt64 val1, UInt64 val2) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objMin = (JCObject)classType.Invoke("Min", val1 == null ? null : val1.getJCOInstance(), val2 == null ? null : val2.getJCOInstance()); return new UInt64(objMin); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy