Skip to content
Snippets Groups Projects

feat: Add Vec2 data type

Closed Xiao Pan requested to merge add_data_structure_vec2 into master
1 unresolved thread
4 files
+ 44
1
Compare changes
  • Side-by-side
  • Inline
Files
4
/*******************************************************************************
* Copyright (c) 2021, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
* Copyright (C) 2023, ANSYS, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -22,6 +23,13 @@
namespace mantle_api
{
template <typename T, class = typename std::enable_if_t<units::traits::is_unit_t<T>::value>>
Please register or sign in to reply
struct Vec2
{
T x{0};
T y{0};
};
template <typename T, class = typename std::enable_if_t<units::traits::is_unit_t<T>::value>>
struct Vec3
{
Loading