mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
26 lines
344 B
C
Executable File
26 lines
344 B
C
Executable File
#ifndef CPxVec3_H
|
|
#define CPxVec3_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CPxVec3 {
|
|
float x, y, z;
|
|
};
|
|
|
|
CPxAPI CPxInline CSTRUCT CPxVec3 NewCPxVec3(float x, float y, float z)
|
|
{
|
|
CSTRUCT CPxVec3 v;
|
|
v.x = x;
|
|
v.y = y;
|
|
v.z = z;
|
|
|
|
return v;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !define CPxVec3_H
|