HighMap library (C++)
Loading...
Searching...
No Matches
array.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  hmap
 

Functions

Array hmap::abs (const Array &array)
 Absolute value.
 
Array hmap::abs_smooth (const Array &array, float mu, const Array &vshift)
 Smooth absolute value.
 
Array hmap::abs_smooth (const Array &array, float mu, float vshift)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Array hmap::abs_smooth (const Array &array, float mu)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Array hmap::almost_unit_identity (const Array &array)
 Almost unit identity function.
 
Array hmap::almost_unit_identity_c2 (const Array &array)
 Almost unit identity function (C2 variant).
 
Array hmap::atan (const Array &array)
 Arctangent.
 
Array hmap::atan2 (const Array &y, const Array &array)
 Element-wise arctangent with quadrant handling.
 
Array hmap::cos (const Array &array)
 Cosine.
 
Array hmap::exp (const Array &array)
 Exponential.
 
Array hmap::gaussian_decay (const Array &array, float sigma)
 Gaussian decay.
 
Array hmap::hypot (const Array &array1, const Array &array2)
 Hypotenuse.
 
Array hmap::is_equal (const Array &array, float value)
 Binary mask of elements equal to a value.
 
Array hmap::is_non_zero (const Array &array)
 Binary mask of non-zero elements.
 
Array hmap::is_zero (const Array &array)
 Binary mask of zero elements.
 
Array hmap::lerp (const Array &array1, const Array &array2, const Array &t)
 Linear interpolation.
 
Array hmap::lerp (const Array &array1, const Array &array2, float t)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Array hmap::log10 (const Array &array)
 Base-10 logarithm.
 
Array hmap::pow (const Array &array, float exp)
 Power function.
 
Array hmap::sigmoid (const Array &array, float width=1.f, float vmin=0.f, float vmax=1.f, float x0=0.f)
 Sigmoid function.
 
Array hmap::sin (const Array &array)
 Sine.
 
Array hmap::smoothstep3 (const Array &array, float vmin=0.f, float vmax=1.f)
 Cubic smoothstep.
 
Array hmap::smoothstep3_lower (const Array &array)
 Cubic smoothstep (zero derivative at 0 only).
 
Array hmap::smoothstep3_upper (const Array &array)
 Cubic smoothstep (zero derivative at 1 only).
 
Array hmap::smoothstep5 (const Array &array, float vmin=0.f, float vmax=1.f)
 Quintic smoothstep.
 
Array hmap::smoothstep5 (const Array &array, const Array &vmin, const Array &vmax)
 
Array hmap::smoothstep5_lower (const Array &array)
 Quintic smoothstep (zero derivative at 0 only).
 
Array hmap::smoothstep5_upper (const Array &array)
 Quintic smoothstep (zero derivative at 1 only).
 
Array hmap::smoothstep7 (const Array &array)
 Seventh-order smoothstep.
 
Array hmap::sqrt (const Array &array)
 Square root.
 
Array hmap::sqrt_safe (const Array &array)
 Safe square root.
 
Array hmap::threshold (const Array &array, float x0, float x1)
 Linear threshold.
 
Array hmap::threshold_smooth (const Array &array, float x0, float x1)
 Smooth threshold.
 

Detailed Description

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)