Quantum 3 3.0.11

Public Member Functions | Static Public Attributes | List of all members
Photon.Deterministic.FP.Comparer Class Reference

Compares FPs. More...

Public Member Functions

override Int32 Compare (FP x, FP y)
 Compares two instances of FP and returns an integer that indicates whether the first instance is less than, equal to, or greater than the second instance. More...
 

Static Public Attributes

static readonly Comparer Instance = new Comparer()
 A global FP comparer instance. More...
 

Detailed Description

Compares FPs.

Member Function Documentation

◆ Compare()

override Int32 Photon.Deterministic.FP.Comparer.Compare ( FP  x,
FP  y 
)
inline

Compares two instances of FP and returns an integer that indicates whether the first instance is less than, equal to, or greater than the second instance.

Parameters
xThe first instance to compare.
yThe second instance to compare.
Returns
A signed integer that indicates the relative values of x and y, as shown in the following table:
  • Less than zero: x is less than y.
  • Zero: x equals y.
  • Greater than zero: x is greater than y.

Member Data Documentation

◆ Instance

readonly Comparer Photon.Deterministic.FP.Comparer.Instance = new Comparer()
static

A global FP comparer instance.