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

VRageMath.MathHelperD

Morten Aune Lyrstad edited this page Apr 16, 2022 · 40 revisions

IndexNamespace Index

MathHelperD Class

public abstract sealed class MathHelperD

Contains commonly used precalculated values.

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

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

Methods

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