mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 15:29:15 -04:00
operating system. A height field is a kind of topographic map. It is a 2D projection of a 3D landscape. Geomorph generates square images and shows a 3D preview of the resulting landscape. The resulting 2D image can be processed with a tool like Povray for rendering the landscape. WWW: http://geomorph.sourceforge.net/ PR: ports/94521 Submitted by: Dmitry Marakasov <amdmi3@mail.ru>
11 lines
367 B
C
11 lines
367 B
C
--- src/hf/hf_calc.c.orig Tue Nov 22 07:25:40 2005
|
|
+++ src/hf/hf_calc.c Mon Mar 6 13:08:02 2006
|
|
@@ -1298,6 +1298,8 @@
|
|
overflow);
|
|
}
|
|
|
|
+#define lround(x) (((x) - (gdouble)(long int)(x)) < 0.5 ? (x) : (x+1.0))
|
|
+
|
|
void hf_fast_rotate (hf_type *hf_in, hf_type *hf_out, gint hf_size, gint angle) {
|
|
// Rotation of a square HF, preview style, with aliasing
|
|
// "Wraps"
|