LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
DFloat

Inherits IEquatable< DFloat >.

Public Member Functions

int CeilToInt ()
 
 DFloat (double value)
 
 DFloat (float value)
 
 DFloat (int value)
 
bool Equals (DFloat other)
 
override bool Equals (object obj)
 
int FloorToInt ()
 
override int GetHashCode ()
 
int RoundToInt ()
 
override string ToString ()
 

Static Public Member Functions

static DFloat Abs (DFloat a)
 
static DFloat Clamp (DFloat val, DFloat min, DFloat max)
 
static int Div (int x, int divisor)
 
static int DivUp (int x, int divisor)
 
static DFloat Lerp (DFloat a, DFloat b, DFloat lerp)
 
static DFloat Max (DFloat a, DFloat b)
 
static DFloat Min (DFloat a, DFloat b)
 
static implicit operator DFloat (double f)
 
static implicit operator DFloat (float f)
 
static implicit operator DFloat (int f)
 
static implicit operator double (DFloat f)
 
static operator float (DFloat f)
 
static operator int (DFloat f)
 
static bool operator!= (DFloat a, DFloat b)
 
static DFloat operator* (DFloat a, int f)
 
static DFloat operator+ (DFloat a, DFloat b)
 
static DFloat operator- (DFloat a)
 
static DFloat operator- (DFloat a, DFloat b)
 
static DFloat operator/ (DFloat a, int f)
 
static bool operator< (DFloat a, DFloat b)
 
static bool operator<= (DFloat a, DFloat b)
 
static bool operator== (DFloat a, DFloat b)
 
static bool operator> (DFloat a, DFloat b)
 
static bool operator>= (DFloat a, DFloat b)
 

Public Attributes

int value
 

Static Public Attributes

const double DivDouble = 1d / Res
 
const float DivFloat = 1f / Res
 
const int HalfRes = 128
 
const int Res = 256