diff --git a/src/Magnum/MeshTools/Transform.h b/src/Magnum/MeshTools/Transform.h index 248055130..9d8bb63b0 100644 --- a/src/Magnum/MeshTools/Transform.h +++ b/src/Magnum/MeshTools/Transform.h @@ -53,9 +53,10 @@ Example usage: @snippet MagnumMeshTools.cpp transformVectors -@see @ref transformVectors(), @ref Matrix3::transformVector(), - @ref Matrix4::transformVector(), @ref Complex::transformVector(), - @ref Quaternion::transformVectorNormalized() +@see @ref transformVectors(), @ref transform2DInPlace(), + @ref transform3DInPlace(), @ref transformTextureCoordinates2DInPlace(), + @ref Matrix3::transformVector(), @ref Matrix4::transformVector(), + @ref Complex::transformVector(), @ref Quaternion::transformVectorNormalized() @todo GPU transform feedback implementation (otherwise this is only bad joke) */ template void transformVectorsInPlace(const Math::Matrix4& matrix, U&& vectors) { @@ -82,6 +83,7 @@ template void transformVectorsInPlace(const Math::Quaternion U transformVectors(const T& transformation, U vectors) { U result(std::move(vectors)); @@ -105,8 +107,9 @@ Example usage: @snippet MagnumMeshTools.cpp transformPoints -@see @ref transformPoints(), @ref Matrix3::transformPoint(), - @ref Matrix4::transformPoint(), +@see @ref transformPoints(), @ref transform2DInPlace(), + @ref transform3DInPlace(), @ref transformTextureCoordinates2DInPlace(), + @ref Matrix3::transformPoint(), @ref Matrix4::transformPoint(), @ref DualQuaternion::transformPointNormalized() */ template void transformPointsInPlace(const Math::Matrix4& matrix, U&& points) { @@ -133,6 +136,7 @@ template void transformPointsInPlace(const Math::DualQuaternio Returns transformed points instead of modifying them in-place. See @ref transformPointsInPlace() for more information. +@see @ref transform2D(), @ref transform3D(), @ref transformTextureCoordinates2D() */ template U transformPoints(const T& transformation, U vectors) { U result(std::move(vectors)); diff --git a/src/Magnum/Primitives/Capsule.h b/src/Magnum/Primitives/Capsule.h index cbb8bcb3e..94a7509d3 100644 --- a/src/Magnum/Primitives/Capsule.h +++ b/src/Magnum/Primitives/Capsule.h @@ -110,7 +110,7 @@ segment are duplicated for texture wrapping. The capsule is by default created with radius set to @f$ 1.0 @f$. In order to get radius @f$ r @f$, length @f$ l @f$ and preserve correct normals, set @p halfLength to @f$ 0.5 \frac{l}{r} @f$ and then scale all positions by -@f$ r @f$, for example using @ref MeshTools::transformPointsInPlace(). +@f$ r @f$, for example using @ref MeshTools::transform3D(). @see @ref capsule3DWireframe(), @ref capsule2DWireframe(), @ref cylinderSolid() */ MAGNUM_PRIMITIVES_EXPORT Trade::MeshData capsule3DSolid(UnsignedInt hemisphereRings, UnsignedInt cylinderRings, UnsignedInt segments, Float halfLength, CapsuleFlags flags = {}); diff --git a/src/Magnum/Primitives/Cone.h b/src/Magnum/Primitives/Cone.h index 84f0d3ce5..e18df9f2b 100644 --- a/src/Magnum/Primitives/Cone.h +++ b/src/Magnum/Primitives/Cone.h @@ -101,7 +101,7 @@ properly smooth normals over the whole area, the tip consists of The cone is by default created with radius set to @f$ 1.0 @f$. In order to get radius @f$ r @f$, length @f$ l @f$ and preserve correct normals, set @p halfLength to @f$ 0.5 \frac{l}{r} @f$ and then scale all positions by -@f$ r @f$, for example using @ref MeshTools::transformPointsInPlace(). +@f$ r @f$, for example using @ref MeshTools::transform3D(). @see @ref coneWireframe(), @ref cylinderSolid() */ MAGNUM_PRIMITIVES_EXPORT Trade::MeshData coneSolid(UnsignedInt rings, UnsignedInt segments, Float halfLength, ConeFlags flags = {}); diff --git a/src/Magnum/Primitives/Cylinder.h b/src/Magnum/Primitives/Cylinder.h index 4a0cd6eea..09e3bb734 100644 --- a/src/Magnum/Primitives/Cylinder.h +++ b/src/Magnum/Primitives/Cylinder.h @@ -100,7 +100,7 @@ texture wrapping. The cylinder is by default created with radius set to @f$ 1.0 @f$. In order to get radius @f$ r @f$, length @f$ l @f$ and preserve correct normals, set @p halfLength to @f$ 0.5 \frac{l}{r} @f$ and then scale all positions by -@f$ r @f$, for example using @ref MeshTools::transformPointsInPlace(). +@f$ r @f$, for example using @ref MeshTools::transform3D(). @see @ref cylinderWireframe(), @ref coneSolid() */ MAGNUM_PRIMITIVES_EXPORT Trade::MeshData cylinderSolid(UnsignedInt rings, UnsignedInt segments, Float halfLength, CylinderFlags flags = {});