brender-v1.3.2/core/std/math.c
2022-05-03 13:10:51 -07:00

40 lines
662 B
C

/*
* Copyright (c) 1995 Argonaut Technologies Limited. All rights reserved.
*
* $Id: math.c 1.2 1998/07/20 21:52:44 jon Exp $
* $Locker: $
*
* Glue to math functions
*/
#include <math.h>
#include "brender.h"
BR_RCS_ID("$Id: math.c 1.2 1998/07/20 21:52:44 jon Exp $")
float BR_PUBLIC_ENTRY BrFloatFloor(float f)
{
return (float)floor(f);
}
float BR_PUBLIC_ENTRY BrFloatCeil(float f)
{
return (float)ceil(f);
}
float BR_PUBLIC_ENTRY BrFloatSqrt(float f)
{
return (float)sqrt(f);
}
float BR_PUBLIC_ENTRY BrFloatPow(float a, float b)
{
return (float)pow(a,b);
}
float BR_PUBLIC_ENTRY BrFloatAtan2(float x, float y)
{
return (float)atan2(x,y);
}