CPxPlane as value type

This commit is contained in:
bloeys
2022-02-19 08:04:43 +04:00
parent 1b0d545d82
commit fbd4ca7ce9
3 changed files with 8 additions and 6 deletions

View File

@ -1,18 +1,19 @@
#ifndef CPxPlane_H
#define CPxPlane_H
#include "CPxVec3.h"
#ifdef __cplusplus
extern "C" {
#endif
//NOTE: Maybe convert this into a value type like CPxSphereGeometry?
struct CPxPlane
{
void* obj;
CSTRUCT CPxVec3 n; //!< The normal to the plane
float d; //!< The distance from the origin
};
CPxAPI CSTRUCT CPxPlane* NewCPxPlane(float nx, float ny, float nz, float distance);
CPxAPI void CPxPlane_release(CSTRUCT CPxPlane*);
CPxAPI CSTRUCT CPxPlane NewCPxPlane(float nx, float ny, float nz, float distance);
#ifdef __cplusplus
}