|
|
|
|
#ifndef Magnum_Math_Vector3_h
|
|
|
|
|
#define Magnum_Math_Vector3_h
|
|
|
|
|
/*
|
|
|
|
|
This file is part of Magnum.
|
|
|
|
|
|
|
|
|
|
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
|
|
|
|
|
2020, 2021, 2022, 2023 Vladimír Vondruš <mosra@centrum.cz>
|
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
copy of this software and associated documentation files (the "Software"),
|
|
|
|
|
to deal in the Software without restriction, including without limitation
|
|
|
|
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
|
and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
|
Software is furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included
|
|
|
|
|
in all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
|
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
|
DEALINGS IN THE SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
|
* @brief Class @ref Magnum::Math::Vector3, function @ref Magnum::Math::cross()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* std::declval() is said to be in <utility> but libstdc++, libc++ and MSVC STL
|
|
|
|
|
all have it directly in <type_traits> because it just makes sense */
|
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
|
|
#include "Magnum/Math/Vector2.h"
|
|
|
|
|
|
|
|
|
|
namespace Magnum { namespace Math {
|
|
|
|
|
|
Math: made dot(), angle(), *lerp() and cross() free functions.
It is often annoying to write e.g. this, especially in generic code:
T dot = Math::Vector<size, T>::dot(a, b);
When this is more than enough and the compiler can infer the rest from
the context:
T dot = Math::dot(a, b);
There are more downsides and confusing cases (you can call
Math::Vector<3, T>::dot(), Math::Vector3<T>::dot() and Color3::dot() and
it is still the same function), so I made these as free functions in
Math namespace. You can now also abuse ADL for the calls, but I would
advise against that for better readability:
T d = dot(a, b); // dot?! what on earth is dot? and what is a?
The only downside found when porting is that you need to specify the
type somehow when having both parameters as initializer lists:
T d = dot({2.0f, -1.5f}, {1.0f, 2.5f}); // error
T d = dot(Complex{2.0f, -1.5f}, {1.0f, 2.5f}); // okay
But that's probably reasonable (and it's also highly corner case,
the functions were used this way only in tests).
The original static member functions are of course still present, but
marked as deprecated and will be removed at some point in future.
11 years ago
|
|
|
/**
|
|
|
|
|
@brief [Cross product](https://en.wikipedia.org/wiki/Cross_product)
|
Math: made dot(), angle(), *lerp() and cross() free functions.
It is often annoying to write e.g. this, especially in generic code:
T dot = Math::Vector<size, T>::dot(a, b);
When this is more than enough and the compiler can infer the rest from
the context:
T dot = Math::dot(a, b);
There are more downsides and confusing cases (you can call
Math::Vector<3, T>::dot(), Math::Vector3<T>::dot() and Color3::dot() and
it is still the same function), so I made these as free functions in
Math namespace. You can now also abuse ADL for the calls, but I would
advise against that for better readability:
T d = dot(a, b); // dot?! what on earth is dot? and what is a?
The only downside found when porting is that you need to specify the
type somehow when having both parameters as initializer lists:
T d = dot({2.0f, -1.5f}, {1.0f, 2.5f}); // error
T d = dot(Complex{2.0f, -1.5f}, {1.0f, 2.5f}); // okay
But that's probably reasonable (and it's also highly corner case,
the functions were used this way only in tests).
The original static member functions are of course still present, but
marked as deprecated and will be removed at some point in future.
11 years ago
|
|
|
|
|
|
|
|
Result has length of @cpp 0 @ce either when one of them is zero or they are
|
|
|
|
|
parallel or antiparallel and length of @cpp 1 @ce when two *normalized* vectors
|
|
|
|
|
are perpendicular. @f[
|
|
|
|
|
\boldsymbol a \times \boldsymbol b = \begin{pmatrix}a_yb_z - a_zb_y \\ a_zb_x - a_xb_z \\ a_xb_y - a_yb_x \end{pmatrix}
|
Math: made dot(), angle(), *lerp() and cross() free functions.
It is often annoying to write e.g. this, especially in generic code:
T dot = Math::Vector<size, T>::dot(a, b);
When this is more than enough and the compiler can infer the rest from
the context:
T dot = Math::dot(a, b);
There are more downsides and confusing cases (you can call
Math::Vector<3, T>::dot(), Math::Vector3<T>::dot() and Color3::dot() and
it is still the same function), so I made these as free functions in
Math namespace. You can now also abuse ADL for the calls, but I would
advise against that for better readability:
T d = dot(a, b); // dot?! what on earth is dot? and what is a?
The only downside found when porting is that you need to specify the
type somehow when having both parameters as initializer lists:
T d = dot({2.0f, -1.5f}, {1.0f, 2.5f}); // error
T d = dot(Complex{2.0f, -1.5f}, {1.0f, 2.5f}); // okay
But that's probably reasonable (and it's also highly corner case,
the functions were used this way only in tests).
The original static member functions are of course still present, but
marked as deprecated and will be removed at some point in future.
11 years ago
|
|
|
@f]
|
|
|
|
|
|
|
|
|
|
If @f$ \boldsymbol{a} @f$, @f$ \boldsymbol{b} @f$ and @f$ \boldsymbol{c} @f$
|
|
|
|
|
are corners of a triangle in a counterclockwise order,
|
|
|
|
|
@f$ (\boldsymbol{c} - \boldsymbol{b}) \times (\boldsymbol{a} - \boldsymbol{b}) @f$
|
|
|
|
|
gives the direction of its normal, and
|
|
|
|
|
@f$ \frac{1}{2}|(\boldsymbol{c} - \boldsymbol{b}) \times (\boldsymbol{a} - \boldsymbol{b})| @f$
|
|
|
|
|
is its area. Length of a cross product is also related to a distance of a point
|
|
|
|
|
and a line, see @ref Distance::linePoint(const Vector3<T>&, const Vector3<T>&, const Vector3<T>&)
|
|
|
|
|
for more information.
|
|
|
|
|
@see @ref cross(const Vector2<T>&, const Vector2<T>&), @ref planeEquation()
|
Math: made dot(), angle(), *lerp() and cross() free functions.
It is often annoying to write e.g. this, especially in generic code:
T dot = Math::Vector<size, T>::dot(a, b);
When this is more than enough and the compiler can infer the rest from
the context:
T dot = Math::dot(a, b);
There are more downsides and confusing cases (you can call
Math::Vector<3, T>::dot(), Math::Vector3<T>::dot() and Color3::dot() and
it is still the same function), so I made these as free functions in
Math namespace. You can now also abuse ADL for the calls, but I would
advise against that for better readability:
T d = dot(a, b); // dot?! what on earth is dot? and what is a?
The only downside found when porting is that you need to specify the
type somehow when having both parameters as initializer lists:
T d = dot({2.0f, -1.5f}, {1.0f, 2.5f}); // error
T d = dot(Complex{2.0f, -1.5f}, {1.0f, 2.5f}); // okay
But that's probably reasonable (and it's also highly corner case,
the functions were used this way only in tests).
The original static member functions are of course still present, but
marked as deprecated and will be removed at some point in future.
11 years ago
|
|
|
*/
|
|
|
|
|
template<class T> inline Vector3<T> cross(const Vector3<T>& a, const Vector3<T>& b) {
|
|
|
|
|
return {
|
|
|
|
|
a._data[1]*b._data[2] - b._data[1]*a._data[2],
|
|
|
|
|
a._data[2]*b._data[0] - b._data[2]*a._data[0],
|
|
|
|
|
a._data[0]*b._data[1] - b._data[0]*a._data[1]
|
|
|
|
|
};
|
Math: made dot(), angle(), *lerp() and cross() free functions.
It is often annoying to write e.g. this, especially in generic code:
T dot = Math::Vector<size, T>::dot(a, b);
When this is more than enough and the compiler can infer the rest from
the context:
T dot = Math::dot(a, b);
There are more downsides and confusing cases (you can call
Math::Vector<3, T>::dot(), Math::Vector3<T>::dot() and Color3::dot() and
it is still the same function), so I made these as free functions in
Math namespace. You can now also abuse ADL for the calls, but I would
advise against that for better readability:
T d = dot(a, b); // dot?! what on earth is dot? and what is a?
The only downside found when porting is that you need to specify the
type somehow when having both parameters as initializer lists:
T d = dot({2.0f, -1.5f}, {1.0f, 2.5f}); // error
T d = dot(Complex{2.0f, -1.5f}, {1.0f, 2.5f}); // okay
But that's probably reasonable (and it's also highly corner case,
the functions were used this way only in tests).
The original static member functions are of course still present, but
marked as deprecated and will be removed at some point in future.
11 years ago
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@brief Three-component vector
|
|
|
|
|
@tparam T Data type
|
|
|
|
|
|
|
|
|
|
See @ref matrix-vector for brief introduction. The vectors are columns, see
|
|
|
|
|
@ref Matrix3x1 for a row vector.
|
|
|
|
|
@see @ref Magnum::Vector3, @ref Magnum::Vector3h, @ref Magnum::Vector3d,
|
|
|
|
|
@ref Magnum::Vector3ub, @ref Magnum::Vector3b, @ref Magnum::Vector3us,
|
|
|
|
|
@ref Magnum::Vector3s, @ref Magnum::Vector3ui, @ref Magnum::Vector3i
|
|
|
|
|
@configurationvalueref{Magnum::Math::Vector3}
|
|
|
|
|
*/
|
|
|
|
|
template<class T> class Vector3: public Vector<3, T> {
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Vector in a direction of X axis (right)
|
|
|
|
|
*
|
|
|
|
|
* Usable for translation or rotation along given axis, for example:
|
|
|
|
|
*
|
|
|
|
|
* @snippet Math.cpp Vector3-xAxis
|
|
|
|
|
*
|
|
|
|
|
* @see @ref yAxis(), @ref zAxis(), @ref xScale(), @ref Color3::red(),
|
|
|
|
|
* @ref Matrix4::right()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> xAxis(T length = T(1)) { return {length, T(0), T(0)}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Vector in a direction of Y axis (up)
|
|
|
|
|
*
|
|
|
|
|
* See @ref xAxis() for more information.
|
|
|
|
|
* @see @ref yScale(), @ref Color3::green(), @ref Matrix4::up()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> yAxis(T length = T(1)) { return {T(0), length, T(0)}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Vector in a direction of Z axis (backward)
|
|
|
|
|
*
|
|
|
|
|
* See @ref xAxis() for more information.
|
|
|
|
|
* @see @ref zScale(), @ref Color3::blue(), @ref Matrix4::backward()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> zAxis(T length = T(1)) { return {T(0), T(0), length}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scaling vector in a direction of X axis (width)
|
|
|
|
|
*
|
|
|
|
|
* Usable for scaling along given direction, for example:
|
|
|
|
|
*
|
|
|
|
|
* @snippet Math.cpp Vector3-xScale
|
|
|
|
|
*
|
|
|
|
|
* @see @ref yScale(), @ref zScale(), @ref Color3::cyan(), @ref xAxis()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> xScale(T scale) { return {scale, T(1), T(1)}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scaling vector in a direction of Y axis (height)
|
|
|
|
|
*
|
|
|
|
|
* See @ref xScale() for more information.
|
|
|
|
|
* @see @ref yAxis(), @ref Color3::magenta()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> yScale(T scale) { return {T(1), scale, T(1)}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scaling vector in a direction of Z axis (depth)
|
|
|
|
|
*
|
|
|
|
|
* See @ref xScale() for more information.
|
|
|
|
|
* @see @ref zAxis(), @ref Color3::yellow()
|
|
|
|
|
*/
|
|
|
|
|
constexpr static Vector3<T> zScale(T scale) { return {T(1), T(1), scale}; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Default constructor
|
|
|
|
|
*
|
|
|
|
|
* Equivalent to @ref Vector3(ZeroInitT).
|
|
|
|
|
*/
|
|
|
|
|
constexpr /*implicit*/ Vector3() noexcept: Vector<3, T>{ZeroInit} {}
|
|
|
|
|
|
Math: more explicit default zero/identity constructors.
Some classes are by default constructed zero-filled while other are set
to identity and the only way to to check this is to look into the
documentation. This changes the default constructor of all classes to
take an optional "tag" which acts as documentation about how the type is
constructed. Note that this result in no behavioral changes, just
ability to be more explicit when writing the code. Example:
// These two are equivalent
Quaternion q1;
Quaternion q2{Math::IdentityInit};
// These two are equivalent
Vector4 vec1;
Vector4 vec2{Math::ZeroInit};
Matrix4 a{Math::IdentityInit, 2}; // 2 on diagonal
Matrix4 b{Math::ZeroInit}; // all zero
This functionality was already present in some ugly form in Matrix,
Matrix3 and Matrix4 classes. It was long and ugly to write, so it is
now generalized into the new Math::IdentityInit and Math::ZeroInit tags,
the original Matrix::IdentityType, Matrix::Identity, Matrix::ZeroType
and Matrix::Zero are deprecated and will be removed in the future
release.
Math::Matrix<7, Int> m{Math::Matrix<7, Int>::Identity}; // before
Math::Matrix<7, Int> m{Math::IdentityInit}; // now
11 years ago
|
|
|
/** @copydoc Vector::Vector(ZeroInitT) */
|
|
|
|
|
constexpr explicit Vector3(ZeroInitT) noexcept: Vector<3, T>{ZeroInit} {}
|
|
|
|
|
|
|
|
|
|
/** @copydoc Vector::Vector(NoInitT) */
|
|
|
|
|
explicit Vector3(Magnum::NoInitT) noexcept: Vector<3, T>{Magnum::NoInit} {}
|
|
|
|
|
|
|
|
|
|
/** @copydoc Vector::Vector(T) */
|
|
|
|
|
constexpr explicit Vector3(T value) noexcept: Vector<3, T>(value) {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Constructor
|
|
|
|
|
*
|
|
|
|
|
* @f[
|
|
|
|
|
* \boldsymbol v = \begin{pmatrix} x \\ y \\ z \end{pmatrix}
|
|
|
|
|
* @f]
|
|
|
|
|
*/
|
|
|
|
|
constexpr /*implicit*/ Vector3(T x, T y, T z) noexcept: Vector<3, T>(x, y, z) {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Constructor
|
|
|
|
|
*
|
|
|
|
|
* @f[
|
|
|
|
|
* \boldsymbol v = \begin{pmatrix} v_x \\ v_y \\ z \end{pmatrix}
|
|
|
|
|
* @f]
|
|
|
|
|
*/
|
|
|
|
|
constexpr /*implicit*/ Vector3(const Vector2<T>& xy, T z) noexcept: Vector<3, T>(xy[0], xy[1], z) {}
|
|
|
|
|
|
|
|
|
|
/** @copydoc Vector::Vector(const T(&)[size_]) */
|
|
|
|
|
#if !defined(CORRADE_TARGET_GCC) || defined(CORRADE_TARGET_CLANG) || __GNUC__ >= 5
|
|
|
|
|
template<std::size_t size_> constexpr explicit Vector3(const T(&data)[size_]) noexcept: Vector<3, T>{data} {}
|
|
|
|
|
#else
|
|
|
|
|
/* GCC 4.8 workaround, see the Vector base for details */
|
|
|
|
|
constexpr explicit Vector3(const T(&data)[3]) noexcept: Vector<3, T>{data} {}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** @copydoc Vector::Vector(const Vector<size, U>&) */
|
|
|
|
|
template<class U> constexpr explicit Vector3(const Vector<3, U>& other) noexcept: Vector<3, T>(other) {}
|
|
|
|
|
|
|
|
|
|
/** @copydoc Vector::Vector(const BitVector<size>&) */
|
|
|
|
|
constexpr explicit Vector3(const BitVector3& other) noexcept: Vector<3, T>{other} {}
|
|
|
|
|
|
|
|
|
|
/** @brief Construct a vector from external representation */
|
|
|
|
|
template<class U, class =
|
|
|
|
|
#ifndef CORRADE_MSVC2015_COMPATIBILITY /* Causes ICE */
|
|
|
|
|
decltype(Implementation::VectorConverter<3, T, U>::from(std::declval<U>()))
|
|
|
|
|
#else
|
|
|
|
|
decltype(Implementation::VectorConverter<3, T, U>())
|
|
|
|
|
#endif
|
|
|
|
|
>
|
|
|
|
|
constexpr explicit Vector3(const U& other): Vector<3, T>(Implementation::VectorConverter<3, T, U>::from(other)) {}
|
|
|
|
|
|
|
|
|
|
/** @brief Copy constructor */
|
|
|
|
|
constexpr /*implicit*/ Vector3(const Vector<3, T>& other) noexcept: Vector<3, T>(other) {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief X component
|
|
|
|
|
*
|
|
|
|
|
* @see @ref r()
|
|
|
|
|
*/
|
|
|
|
|
T& x() { return Vector<3, T>::_data[0]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& x() const { return Vector<3, T>::_data[0]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Y component
|
|
|
|
|
*
|
|
|
|
|
* @see @ref g()
|
|
|
|
|
*/
|
|
|
|
|
T& y() { return Vector<3, T>::_data[1]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& y() const { return Vector<3, T>::_data[1]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Z component
|
|
|
|
|
*
|
|
|
|
|
* @see @ref b()
|
|
|
|
|
*/
|
|
|
|
|
T& z() { return Vector<3, T>::_data[2]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& z() const { return Vector<3, T>::_data[2]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief R component
|
|
|
|
|
*
|
|
|
|
|
* Equivalent to @ref x().
|
|
|
|
|
*/
|
|
|
|
|
T& r() { return Vector<3, T>::_data[0]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& r() const { return Vector<3, T>::_data[0]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief G component
|
|
|
|
|
*
|
|
|
|
|
* Equivalent to @ref y().
|
|
|
|
|
*/
|
|
|
|
|
T& g() { return Vector<3, T>::_data[1]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& g() const { return Vector<3, T>::_data[1]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief B component
|
|
|
|
|
*
|
|
|
|
|
* Equivalent to @ref z().
|
|
|
|
|
*/
|
|
|
|
|
T& b() { return Vector<3, T>::_data[2]; }
|
|
|
|
|
/** @overload */
|
|
|
|
|
constexpr const T& b() const { return Vector<3, T>::_data[2]; }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief XY part of the vector
|
|
|
|
|
* @return First two components of the vector
|
|
|
|
|
*
|
|
|
|
|
* @see @ref rg(), @ref gather(), @ref scatter()
|
|
|
|
|
*/
|
|
|
|
|
Vector2<T>& xy() { return Vector2<T>::from(Vector<3, T>::data()); }
|
|
|
|
|
constexpr const Vector2<T> xy() const {
|
|
|
|
|
return {Vector<3, T>::_data[0], Vector<3, T>::_data[1]};
|
|
|
|
|
} /**< @overload */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief RG part of the vector
|
|
|
|
|
* @return First two components of the vector
|
|
|
|
|
* @m_since_latest
|
|
|
|
|
*
|
|
|
|
|
* Equivalent to @ref xy().
|
|
|
|
|
*/
|
|
|
|
|
Vector2<T>& rg() { return Vector2<T>::from(Vector<3, T>::data()); }
|
|
|
|
|
/**
|
|
|
|
|
* @overload
|
|
|
|
|
* @m_since_latest
|
|
|
|
|
*/
|
|
|
|
|
constexpr const Vector2<T> rg() const {
|
|
|
|
|
return {Vector<3, T>::_data[0], Vector<3, T>::_data[1]};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MAGNUM_VECTOR_SUBCLASS_IMPLEMENTATION(3, Vector3)
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
template<class U> friend Vector3<U> cross(const Vector3<U>&, const Vector3<U>&);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_MSVC2015_COMPATIBILITY
|
|
|
|
|
MAGNUM_VECTORn_OPERATOR_IMPLEMENTATION(3, Vector3)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_NO_MATH_STRICT_WEAK_ORDERING
|
|
|
|
|
namespace Implementation {
|
|
|
|
|
template<class T> struct TypeForSize<3, T> { typedef Math::Vector3<typename T::Type> Type; };
|
|
|
|
|
|
|
|
|
|
template<class T> struct StrictWeakOrdering<Vector3<T>>: StrictWeakOrdering<Vector<3, T>> {};
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
#endif
|