Skip to main content

SimplexNoise.Grad

A private struct in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

A gradient vector for SimplexNoise (3D, with w used only for 4D noise). Private to that class.

Constructors​

MemberWhat it is
Grad(double x, double y, double z)Creates a SimplexNoise.Grad from x, y, z and w.
Grad(double x, double y, double z, double w)Creates a SimplexNoise.Grad from x, y, z and w.

Fields​

MemberWhat it is
double wFourth component, 0 for 3D gradients.
double xX part of the gradient vector.
double yY part of the gradient vector.
double zZ part of the gradient vector.

Used in​

Members of other types that take, return or hold a Grad: