Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.MyFixedPoint

Malware edited this page Dec 21, 2018 · 44 revisions

Index

MyFixedPoint Struct

Namespace: VRage
Assembly: VRage.Library.dll

Summary

Fixed point number represented as 64-bit integer with 6 decimal places (one millionts)

Fields

Member Description
long RawValue
static MyFixedPoint MinValue
static MyFixedPoint MaxValue
static MyFixedPoint Zero
static MyFixedPoint SmallestPossibleValue
static MyFixedPoint MaxIntValue
static MyFixedPoint MinIntValue

Methods

Member Description
string SerializeString() For XmlSerialization, format is 123.456789
static MyFixedPoint DeserializeStringSafe(string text) For XmlSerialization, format is 123.456789 Handles double and decimal formats too.
static MyFixedPoint DeserializeString(string text)
static bool IsIntegral(MyFixedPoint fp)
static MyFixedPoint Ceiling(MyFixedPoint a)
static MyFixedPoint Floor(MyFixedPoint a)
static MyFixedPoint Min(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint Max(MyFixedPoint a, MyFixedPoint b)
static MyFixedPoint Round(MyFixedPoint a)
static MyFixedPoint AddSafe(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)
int ToIntSafe()
string ToString()
int GetHashCode()
bool Equals(Object obj)

Clone this wiki locally