Scripting API

Home Scripting API Index Class Overview

nlvm.lang

Class Math


public final class Math
extends Object

Math tools and functions

Field Summary

static final double E
The base of the natural logarithm as a double precision constant (2.71828...)
static final double PI
The ratio of a circle's circumference to its diameter (3.14159...)


Method Summary

static double abs(double a)
static float abs(float a)
static int abs(int a)
static long abs(long a)
static double acos(double a)
static double asin(double a)
static double atan(double a)
static double atan2(double a, double b)
static double ceil(double a)
static double cos(double a)
static double exp(double a)
static double floor(double a)
static double log(double a)
static double max(double a, double b)
static float max(float a, float b)
static int max(int a, int b)
static long max(long a, long b)
static double min(double a, double b)
static float min(float a, float b)
static int min(int a, int b)
static long min(long a, long b)
static double pow(double a, double b)
static double random()
  Returns a pseudo-random number within the range [0,1[
static double sin(double a)
static double sqrt(double a)
static double tan(double a)
static double toDegrees(double angrad)
static double toRadians(double angdeg)


Field Detail


E

public static final double E

The base of the natural logarithm as a double precision constant (2.71828...)


PI

public static final double PI

The ratio of a circle's circumference to its diameter (3.14159...)


Method Detail


abs

public static double abs(double a)


abs

public static float abs(float a)


abs

public static int abs(int a)


abs

public static long abs(long a)


acos

public static double acos(double a)


asin

public static double asin(double a)


atan

public static double atan(double a)


atan2

public static double atan2(double a, double b)


ceil

public static double ceil(double a)


cos

public static double cos(double a)


exp

public static double exp(double a)


floor

public static double floor(double a)


log

public static double log(double a)


max

public static double max(double a, double b)


max

public static float max(float a, float b)


max

public static int max(int a, int b)


max

public static long max(long a, long b)


min

public static double min(double a, double b)


min

public static float min(float a, float b)


min

public static int min(int a, int b)


min

public static long min(long a, long b)


pow

public static double pow(double a, double b)


random

public static double random()

Returns a pseudo-random number within the range [0,1[


sin

public static double sin(double a)


sqrt

public static double sqrt(double a)


tan

public static double tan(double a)


toDegrees

public static double toDegrees(double angrad)


toRadians

public static double toRadians(double angdeg)