summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_m3d_g_aab.cpp
blob: 3b53627d9c1bd854239eae3e9d03e62d74f186c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Generated by dtk
// Translation Unit: c_m3d_g_aab.cpp
//

#include "SSystem/SComponent/c_m3d_g_aab.h"

/* 80251CC4-80251D08       .text SetMinMax__8cM3dGAabFRC4cXyz */
void cM3dGAab::SetMinMax(const cXyz& pMinMax) {
    SetMin(pMinMax);
    SetMax(pMinMax);
}

/* 80251D08-80251D48       .text SetMin__8cM3dGAabFRC4cXyz */
void cM3dGAab::SetMin(const cXyz& pMin) {
    if (mMin.x > pMin.x) {
        mMin.x = pMin.x;
    }
    if (mMin.y > pMin.y) {
        mMin.y = pMin.y;
    }
    if (mMin.z > pMin.z) {
        mMin.z = pMin.z;
    }
}

/* 80251D48-80251D88       .text SetMax__8cM3dGAabFRC4cXyz */
void cM3dGAab::SetMax(const cXyz& pMax) {
    if (mMax.x < pMax.x) {
        mMax.x = pMax.x;
    }
    if (mMax.y < pMax.y) {
        mMax.y = pMax.y;
    }
    if (mMax.z < pMax.z) {
        mMax.z = pMax.z;
    }
}