Skip to content

Commit

Permalink
added linalg docs (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Nov 14, 2024
1 parent b26007e commit 0b957bf
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 44 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ message(STATUS "BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
message(STATUS " ")
message(STATUS "MANIFOLD_PAR: ${MANIFOLD_PAR}")
message(STATUS "MANIFOLD_CROSS_SECTION: ${MANIFOLD_CROSS_SECTION}")
message(STATUS "MANIFOLD_FLAGS: ${MANIFOLD_FLAGS}")
message(STATUS "MANIFOLD_EXPORT: ${MANIFOLD_EXPORT}")
message(STATUS "MANIFOLD_TEST: ${MANIFOLD_TEST}")
message(STATUS "MANIFOLD_FUZZ: ${MANIFOLD_FUZZ}")
Expand All @@ -361,6 +360,7 @@ message(STATUS "MANIFOLD_CBIND: ${MANIFOLD_CBIND}")
message(STATUS "MANIFOLD_PYBIND: ${MANIFOLD_PYBIND}")
message(STATUS "MANIFOLD_JSBIND: ${MANIFOLD_JSBIND}")
message(STATUS "MANIFOLD_EXCEPTIONS: ${MANIFOLD_EXCEPTIONS}")
message(STATUS "MANIFOLD_FLAGS: ${MANIFOLD_FLAGS}")
message(STATUS " ")

# If it's an EMSCRIPTEN build, we're done
Expand Down
11 changes: 8 additions & 3 deletions include/manifold/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ namespace manifold {
* @brief Simple math operations.
* */

/** @addtogroup Scalar
* @ingroup Math
* @brief Simple scalar operations.
/** @addtogroup LinAlg
* @{
*/
namespace la = linalg;
Expand All @@ -47,6 +45,13 @@ using ivec2 = la::vec<int, 2>;
using ivec3 = la::vec<int, 3>;
using ivec4 = la::vec<int, 4>;
using quat = la::vec<double, 4>;
/** @} */

/** @addtogroup Scalar
* @ingroup Math
* @brief Simple scalar operations.
* @{
*/

constexpr double kPi = 3.14159265358979323846264338327950288;
constexpr double kTwoPi = 6.28318530717958647692528676655900576;
Expand Down
Loading

0 comments on commit 0b957bf

Please sign in to comment.