commit 489ba46c8b81ba370c33ca2a838df86b84ee69e5
parent e90c1bb5f6cceaba99f20f0e8aafc22d0b453c8a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 6 Oct 2020 10:30:04 +0200
Fix how input arguments are handled
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/htrdr_rectangle.c b/src/htrdr_rectangle.c
@@ -50,10 +50,10 @@ rectangle_release(ref_T* ref)
res_T
htrdr_rectangle_create
(struct htrdr* htrdr,
+ const double sz[2],
const double pos[3],
const double tgt[3],
- const double up[2],
- const double sz[2],
+ const double up[3],
struct htrdr_rectangle** out_rect)
{
struct htrdr_rectangle* rect = NULL;
diff --git a/src/htrdr_rectangle.h b/src/htrdr_rectangle.h
@@ -28,7 +28,7 @@ htrdr_rectangle_create
const double sz[2], /* Size of the rectangle along its local X and Y axis */
const double pos[3], /* World space position of the rectangle center */
const double tgt[3], /* Vector orthognal to the rectangle plane */
- const double up[2], /* vector orthogonal to the rectangle X axis */
+ const double up[3], /* vector orthogonal to the rectangle X axis */
struct htrdr_rectangle** rect);
extern LOCAL_SYM void