Skip to content

TEGS Scripting: Math Library

Jon Thysell edited this page Mar 20, 2022 · 7 revisions

The Math library provides constants and functions relevant to trigonometric, logarithmic, and other common mathematical functions.

Constants

Name Full Name Type Value Description
E Math.E Double 2.7182818284590451 The natural logarithmic base, specified by the constant e.
PI Math.PI Double 3.1415926535897931 The ratio of the circumference of a circle to its diameter, specified by the constant π.
Tau Math.Tau Double 6.2831853071795862 The number of radians in one turn, specified by the constant, τ.

Functions

Abs

Returns the absolute value of a specified number.

Math.Abs(Integer)

Integer Math.Abs(Integer value)

Parameters

value Integer

A number.

Returns

Integer

The absolute value of the specified number.

Math.Abs(Double)

Double Math.Abs(Double value)

Parameters

value Double

A number.

Returns

Double

The absolute value of the specified number.

Acos

TODO

Acosh

TODO

Asin

TODO

Asinh

TODO

Atan

TODO

Atanh

TODO

Atan2

TODO

BitDecrement

TODO

BitIncrement

TODO

Cbrt

TODO

Ceiling

TODO

Clamp

TODO

CopySign

TODO

Cos

TODO

Cosh

TODO

Exp

TODO

Floor

TODO

FusedMultiplyAdd

TODO

IEEERemainder

TODO

Log

TODO

Log10

TODO

Log2

TODO

Max

TODO

MaxMagnitude

TODO

Min

TODO

MinMagnitude

TODO

Pow

TODO

ReciprocalEstimate

TODO

ReciprocalSqrtEstimate

TODO

Round

TODO

Sign

TODO

Sin

TODO

Sinh

TODO

Sqrt

TODO

Tan

TODO

Tanh

TODO

Truncate

TODO