Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.MathHelperD

Malware edited this page Dec 21, 2018 · 40 revisions

Index

MathHelperD Class

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Contains commonly used precalculated values.

Fields

Member Description
static double E Represents the mathematical constant e.
static double Pi Represents the value of pi.
static double TwoPi Represents the value of pi times two.
static double FourPi Represents the value of pi times four.
static double PiOver2 Represents the value of pi divided by two.
static double PiOver4 Represents the value of pi divided by four.

Methods

Member Description
static double ToRadians(double degrees) Converts degrees to radians.
static double ToDegrees(double radians) Converts radians to degrees.
static double Distance(double value1, double value2) Calculates the absolute value of the difference of two values.
static double Min(double value1, double value2) Returns the lesser of two values.
static double Max(double value1, double value2) Returns the greater of two values.
static double Clamp(double value, double min, double max) Restricts a value to be within a specified range. Reference page contains links to related code samples.
static float MonotonicAcos(float cos)
Clone this wiki locally