-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize math types (see #94). API breaking changes. Clean up type…
… warnings. - Matrix4F objects are now defined to be column-major, and a matrix `M` now transforms a vector `v` by multiplying with the column vector on the right, like `Mv`. This shouldn't impact your code unless you were using `GetRowVec` or `GetF` - `sample_utils`' `vec.h`, `vec.cpp`, `camera.h`, and `camera.cpp` have been removed. These were copies of their corresponding GVDB classes that were slowly diverging over time, and are not needed (the only sample impacted as a result is `gFluidSurface`). If you were using these, include the GVDB headers for drop-in replacements. - `Vector3DI` and `Vector3DF` are now templatized instantiations of a single `Vector3D` class. To accomodate this, its functions have been moved inline to `gvdb_vec.h`. This might increase compilation times a bit - sorry about that! - `Matrix4F::operator* (const Vector3DF &op)` now returns a `Vector3DF`, the result of transforming the vector by the matrix, instead of a `Matrix4F`, the result of multiplying the matrix by `diag(op.x, op.y, op.z, 1)`. The old behavior has been renamed to `Matrix4F::ScaleInPlace`. - `ActivateSpaceAtLevel` and `isActive` now take a `Vector3DI` pos instead of a `Vector3DF`. Previously, the `Vector3DF` was internally casted to a `Vector3DI`. - `getNumNodes`, `getNumUsedNodes`, and `getNumTotalNodes` now return 64-bit unsigned integers in order to represent the underlying `DataPtr` structure more accurately. However, most users of these functions cast them to `ints` in any case. - The order of arguments in `mmult` have been swapped. - Removes unused variables `camivprow0...camivprow3` from `ScnInfo`. - `AllocateNeighbors` now takes a `uint64` instead of an `int`. However, this change is not very impactful. - Renames the variables in `Matrix4F::operator()`. By coincidence, this produces exactly the same behavior as before, so no code changes are needed. Also includes changes throughout the codebase to fix the type casting warnings VS 2019 was warning about, removes the `GVDB_VEC`... variables, and adds documentation for math class functions. Note that you may have to do a clean rebuild of the project after pulling this commit, as the mangled type names for the `Vector3` classes have changed.
- Loading branch information
1 parent
f0d05bb
commit 34928fa
Showing
33 changed files
with
760 additions
and
3,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.