Class Fixed16
A signed 16-bit fixed-point value with an implicit 0x7FFF scale.
public class Fixed16 : IDisposable
- Inheritance
-
Fixed16
- Implements
- Inherited Members
Constructors
Fixed16()
public Fixed16()
Fixed16(short)
public Fixed16(short value)
Parameters
valueshort
Fixed16(Fixed16)
Copy-construct: a deep copy of other (the C++ copy constructor).
public Fixed16(Fixed16 other)
Parameters
otherFixed16
Properties
AsFloat
The value as a float in [-1, 1].
public float AsFloat { get; }
Property Value
Value
The raw fixed-point integer; value / 0x7FFF is the float.
public short Value { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(Fixed16?, Fixed16?)
public static bool operator ==(Fixed16? l, Fixed16? r)
Parameters
Returns
operator !=(Fixed16?, Fixed16?)
public static bool operator !=(Fixed16? l, Fixed16? r)