Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
obround.c File Reference
#include "arc/math/obround.h"

Go to the source code of this file.

Functions

ARC_FObround ARC_Obround_CastToFObround (ARC_Obround *obround)
 casts Obround to FObround
 
ARC_Obround ARC_FObround_CastToObround (ARC_FObround *obround)
 casts FObround to Obround
 

Function Documentation

◆ ARC_FObround_CastToObround()

ARC_Obround ARC_FObround_CastToObround ( ARC_FObround * obround)

casts FObround to Obround

Parameters
obroundARC_FObround to be casted
Returns
ARC_Obround

Definition at line 12 of file obround.c.

12 {
13 return (ARC_Obround){
14 .x = (int32_t)obround->x,
15 .y = (int32_t)obround->y,
16 .r = (int32_t)obround->r,
17 .h = (int32_t)obround->h
18 };
19}
float y
Definition obround.h:19
float h
Definition obround.h:21
float x
Definition obround.h:18
float r
Definition obround.h:20

References ARC_FObround::h, ARC_FObround::r, ARC_FObround::x, and ARC_FObround::y.

◆ ARC_Obround_CastToFObround()

ARC_FObround ARC_Obround_CastToFObround ( ARC_Obround * obround)

casts Obround to FObround

Parameters
obroundARC_Obround to be casted
Returns
ARC_FObround

Definition at line 3 of file obround.c.

3 {
4 return (ARC_FObround){
5 .x = (float)obround->x,
6 .y = (float)obround->y,
7 .r = (float)obround->r,
8 .h = (float)obround->h
9 };
10}
int32_t r
Definition obround.h:13
int32_t x
Definition obround.h:11
int32_t y
Definition obround.h:12
int32_t h
Definition obround.h:14

References ARC_Obround::h, ARC_Obround::r, ARC_Obround::x, and ARC_Obround::y.