Click or drag to resize

Fixed Structure

A fixed floating point number with 7 decimal places. Using this instead of floats or double ensures deterministic event dispatching.

Namespace:  Demo3D.EventQueue
Assembly:  Demo3D.EventQueue (in Demo3D.EventQueue.dll) Version: 15.0.2.11458
Syntax
C#
public struct Fixed : IComparable<Fixed>, 
	IComparable, IFormattable, IEquatable<Fixed>

The Fixed type exposes the following members.

Constructors
  NameDescription
Public methodFixed(Decimal)
Initializes a new instance of the Fixed class
Public methodFixed(Double)
Initializes a new instance of the Fixed class
Public methodFixed(Int32)
Initializes a new instance of the Fixed class
Public methodFixed(Int64)
Initializes a new instance of the Fixed class
Public methodFixed(Single)
Initializes a new instance of the Fixed class
Public methodFixed(Int32, Int32)
Initializes a new instance of the Fixed class
Public methodFixed(Int64, Int64)
Initializes a new instance of the Fixed class
Top
Methods
  NameDescription
Public methodStatic memberParse(String)
Convert a string in into a Fixed number.
Public methodStatic memberParse(String, NumberStyles)
Convert a string in into a Fixed number.
Public methodStatic memberParse(String, IFormatProvider)
Convert a string in into a Fixed number.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Convert a string in into a Fixed number.
Public methodStatic memberRoundUp
Rounds up the provided double floating point time to the fixed precision floating point format. This ensures that the value returned is at least as big as the double precision floating point value provided. The input value is then set to the double floating point precision representation of the retured fixed precision floating point value.
Public methodToString
Display the number as a string.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Display the number as a string.
Public methodToString(String)
Display the number as a string.
Public methodToString(String, IFormatProvider)
Display the number as a string.
Top
Operators
  NameDescription
Public operatorStatic member(Double to Fixed)
Convert explicitly from double.
Public operatorStatic member(Fixed to Decimal)
Convert explicitly to decimal.
Public operatorStatic member(Fixed to Double)
Convert explicitly to double.
Public operatorStatic member(Fixed to Int32)
Convert explicitly to int.
Public operatorStatic member(Fixed to Int64)
Convert explicitly to long.
Public operatorStatic member(Fixed to Single)
Convert explicitly to float.
Public operatorStatic member(Single to Fixed)
Convert explicitly from double.
Public operatorStatic member(Decimal to Fixed)
Convert implicitly from decimal.
Public operatorStatic member(Int32 to Fixed)
Convert implicitly from int.
Public operatorStatic member(Int64 to Fixed)
Convert implicitly from lomg.
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
The smallest difference between two Fixed numbers.
Public fieldStatic memberMaxValue
Largest Fixed value possible.
Public fieldStatic memberMinValue
Smallest Fixed value possible.
Public fieldStatic memberOne
Fixed value of one.
Public fieldStatic memberZero
Fixed value of zero.
Top
See Also