Replace 0 by 0.0 for double value comparison. This is nicer.
This commit is contained in:
parent
85f037ce59
commit
4b238c55ea
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include <gds-render/geometric/vector-operations.h>
|
#include <gds-render/geometric/vector-operations.h>
|
||||||
|
|
||||||
#define ABS_DBL(a) ((a) < 0 ? -(a) : (a))
|
#define ABS_DBL(a) ((a) < 0.0 ? -(a) : (a))
|
||||||
|
|
||||||
double vector_2d_scalar_multipy(struct vector_2d *a, struct vector_2d *b)
|
double vector_2d_scalar_multipy(struct vector_2d *a, struct vector_2d *b)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user