-
Notifications
You must be signed in to change notification settings - Fork 124
VRage.MyFixedPoint
← Index ← Namespace Index
public struct MyFixedPoint: IXmlSerializable
Fixed point number represented as 64-bit integer with 6 decimal places (one millionts)
Namespace: VRage
Assembly: VRage.Library.dll
Implements:
- IXmlSerializable prohibited
static MyFixedPoint MaxIntValue
static MyFixedPoint MinIntValue
static MyFixedPoint SmallestPossibleValue
static MyFixedPoint AddSafe(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint Ceiling(MyFixedPoint a)
static MyFixedPoint DeserializeString(string text)
static MyFixedPoint DeserializeStringSafe(string text)
For XmlSerialization, format is 123.456789 Handles double and decimal formats too.
static MyFixedPoint Floor(MyFixedPoint a)
static bool IsIntegral(MyFixedPoint fp)
static MyFixedPoint Max(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint Min(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint MultiplySafe(MyFixedPoint a, float b)
static MyFixedPoint MultiplySafe(MyFixedPoint a, int b)
static MyFixedPoint MultiplySafe(float a, MyFixedPoint b)
static MyFixedPoint MultiplySafe(int a, MyFixedPoint b)
static MyFixedPoint MultiplySafe(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint Round(MyFixedPoint a)
For XmlSerialization, format is 123.456789
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!