Table of Contents

Class Fixed16

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

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

value short

Fixed16(Fixed16)

Copy-construct: a deep copy of other (the C++ copy constructor).

public Fixed16(Fixed16 other)

Parameters

other Fixed16

Properties

AsFloat

The value as a float in [-1, 1].

public float AsFloat { get; }

Property Value

float

Value

The raw fixed-point integer; value / 0x7FFF is the float.

public short Value { get; set; }

Property Value

short

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(Fixed16?, Fixed16?)

public static bool operator ==(Fixed16? l, Fixed16? r)

Parameters

l Fixed16
r Fixed16

Returns

bool

operator !=(Fixed16?, Fixed16?)

public static bool operator !=(Fixed16? l, Fixed16? r)

Parameters

l Fixed16
r Fixed16

Returns

bool