Skip to content

Commit

Permalink
Move ClipResult and its constants out of Matrix.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mott committed Mar 24, 2021
1 parent af675be commit 763544a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions libs/math/Matrix4.h
Expand Up @@ -9,17 +9,6 @@

class Quaternion;

typedef unsigned char ClipResult;

const ClipResult c_CLIP_PASS = 0x00; // 000000
const ClipResult c_CLIP_LT_X = 0x01; // 000001
const ClipResult c_CLIP_GT_X = 0x02; // 000010
const ClipResult c_CLIP_LT_Y = 0x04; // 000100
const ClipResult c_CLIP_GT_Y = 0x08; // 001000
const ClipResult c_CLIP_LT_Z = 0x10; // 010000
const ClipResult c_CLIP_GT_Z = 0x20; // 100000
const ClipResult c_CLIP_FAIL = 0x3F; // 111111

/**
* A 4x4 matrix stored in double-precision floating-point.
*
Expand Down
11 changes: 11 additions & 0 deletions libs/selection/BestPoint.h
Expand Up @@ -13,6 +13,17 @@ enum clipcull_t
eClipCullCCW,
};

typedef unsigned char ClipResult;

const ClipResult c_CLIP_PASS = 0x00; // 000000
const ClipResult c_CLIP_LT_X = 0x01; // 000001
const ClipResult c_CLIP_GT_X = 0x02; // 000010
const ClipResult c_CLIP_LT_Y = 0x04; // 000100
const ClipResult c_CLIP_GT_Y = 0x08; // 001000
const ClipResult c_CLIP_LT_Z = 0x10; // 010000
const ClipResult c_CLIP_GT_Z = 0x20; // 100000
const ClipResult c_CLIP_FAIL = 0x3F; // 111111

class Segment3D
{
public:
Expand Down

0 comments on commit 763544a

Please sign in to comment.