Skip to content

Commit

Permalink
Build on 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
mtheall committed Nov 30, 2023
1 parent 0bb4e3c commit 7e95cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-22.04, macos-12]
os: [windows-2019, ubuntu-20.04, macos-12]

steps:
- uses: actions/checkout@v3
Expand All @@ -29,9 +29,6 @@ jobs:
run: |
python3 setup.py build
python3 setup.py bdist_wheel --py-limited-api=cp34
env:
CC: gcc-12
CXX: g++-12
- name: Install extension
shell: bash
Expand Down
10 changes: 4 additions & 6 deletions src/Math/MathTypes/MathTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

// RocketSim 3D vector struct
struct RS_ALIGN_16 Vec {
float x, y, z;
float x = 0, y = 0, z = 0;

float _w; // 4th component to get compiler to use SIMD operations
float _w = 0; // 4th component to get compiler to use SIMD operations

constexpr Vec() {
x = y = z = _w = 0;
}
constexpr Vec() = default;

constexpr Vec(float x, float y, float z, float _w = 0) : x(x), y(y), z(z), _w(_w) {}

Expand Down Expand Up @@ -296,4 +294,4 @@ struct Angle {
stream << "(YPR)[ " << ang.yaw << ", " << ang.pitch << ", " << ang.roll << " ]";
return stream;
}
};
};

0 comments on commit 7e95cf5

Please sign in to comment.