|
void | hmap::flip_lr (Array &array) |
| Flip the array horizontally (left/right).
|
|
void | hmap::flip_ud (Array &array) |
| Flip the array vertically (up/down).
|
|
void | hmap::rot180 (Array &array) |
| Rotate the array by 180 degrees.
|
|
void | hmap::rot270 (Array &array) |
| Rotate the array by 270 degrees.
|
|
void | hmap::rot90 (Array &array) |
| Rotate the array by 90 degrees.
|
|
void | hmap::rotate (Array &array, float angle, bool zoom_in=true, bool zero_padding=false) |
| Rotate the array by a specified angle.
|
|
Array | hmap::translate (const Array &array, float dx, float dy, bool periodic=false, const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f}) |
| Translates a 2D array by a specified amount along the x and y axes.
|
|
Array | hmap::transpose (const Array &array) |
| Return the transposed array.
|
|
Array | hmap::zoom (const Array &array, float zoom_factor, bool periodic=false, Vec2< float > center={0.5f, 0.5f}, const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f}) |
| Applies a zoom effect to a 2D array with an adjustable center.
|
|