Skip to content

Commit

Permalink
pbio/imu: Drop redundant struct nesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Oct 17, 2024
1 parent 4d457a1 commit 4ddd2d8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/pbio/include/pbio/geometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ typedef enum {
/**
* Coordinate-like type with x, y, and z floating point values.
*/
typedef struct _pbio_geometry_xyz_t {
union {
struct {
float x; /**< X coordinate.*/
float y; /**< Y coordinate.*/
float z; /**< Z coordinate.*/
};
float values[3];
typedef union {
struct {
float x; /**< X coordinate.*/
float y; /**< Y coordinate.*/
float z; /**< Z coordinate.*/
};
float values[3];
} pbio_geometry_xyz_t;

/**
Expand Down

0 comments on commit 4ddd2d8

Please sign in to comment.