mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
Fixed typos
This commit is contained in:
parent
dcc5cfdc4a
commit
49942a611c
@ -515,7 +515,7 @@ static_assert(glm::vec4::length() == 4, "Using GLM C++ 14 constexpr support for
|
|||||||
#define GLM_FORCE_SIMD_AVX2
|
#define GLM_FORCE_SIMD_AVX2
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
// If the compiler doesn’t support AVX2 instrinsics, compiler errors will happen.
|
// If the compiler doesn’t support AVX2 intrinsics, compiler errors will happen.
|
||||||
```
|
```
|
||||||
|
|
||||||
Additionally, GLM provides a low level SIMD API in glm/simd directory for users who are really interested in writing fast algorithms.
|
Additionally, GLM provides a low level SIMD API in glm/simd directory for users who are really interested in writing fast algorithms.
|
||||||
@ -1943,7 +1943,7 @@ To workaround the incompatibility with these macros, GLM will systematically und
|
|||||||
### <a name="section7_13"></a> 7.13. Constant expressions support
|
### <a name="section7_13"></a> 7.13. Constant expressions support
|
||||||
|
|
||||||
GLM has some C++ [constant expressions](http://en.cppreference.com/w/cpp/language/constexpr) support. However, GLM automatically detects the use of SIMD instruction sets through compiler arguments to populate its implementation with SIMD intrinsics.
|
GLM has some C++ [constant expressions](http://en.cppreference.com/w/cpp/language/constexpr) support. However, GLM automatically detects the use of SIMD instruction sets through compiler arguments to populate its implementation with SIMD intrinsics.
|
||||||
Unfortunately, GCC and Clang doesn't support SIMD instrinsics as constant expressions. To allow constant expressions on all vectors and matrices types, define `GLM_FORCE_PURE` before including GLM headers.
|
Unfortunately, GCC and Clang don't support SIMD intrinsics as constant expressions. To allow constant expressions on all vectors and matrices types, define `GLM_FORCE_PURE` before including GLM headers.
|
||||||
|
|
||||||
---
|
---
|
||||||
<div style="page-break-after: always;"> </div>
|
<div style="page-break-after: always;"> </div>
|
||||||
@ -2133,7 +2133,7 @@ We need to download a copy of our fork to our local machine. In the terminal, ty
|
|||||||
|
|
||||||
This will clone our fork repository into the current folder.
|
This will clone our fork repository into the current folder.
|
||||||
|
|
||||||
We can find our repository git url on the Github reposotory page. The url looks like this: `https://github.com/<our-username>/<repository-name>.git`
|
We can find our repository git url on the Github repository page. The url looks like this: `https://github.com/<our-username>/<repository-name>.git`
|
||||||
|
|
||||||
#### Step 2: Synchronizing our fork
|
#### Step 2: Synchronizing our fork
|
||||||
|
|
||||||
|
28
readme.md
28
readme.md
@ -41,7 +41,7 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## [Lastest release](https://github.com/g-truc/glm/releases/latest)
|
## [Latest release](https://github.com/g-truc/glm/releases/latest)
|
||||||
|
|
||||||
## Project Health
|
## Project Health
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ find_package(glm CONFIG REQUIRED)
|
|||||||
target_link_libraries(main PRIVATE glm::glm)
|
target_link_libraries(main PRIVATE glm::glm)
|
||||||
```
|
```
|
||||||
|
|
||||||
If your perfer to use header-only version of GLM
|
If your prefer to use header-only version of GLM
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
find_package(glm CONFIG REQUIRED)
|
find_package(glm CONFIG REQUIRED)
|
||||||
@ -150,7 +150,7 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Added *GLM_EXT_matrix_intX* and *GLM_EXT_matrix_uintX* extensions
|
- Added *GLM_EXT_matrix_intX* and *GLM_EXT_matrix_uintX* extensions
|
||||||
|
|
||||||
#### Improvements:
|
#### Improvements:
|
||||||
- Added `glm::clamp`, `glm::repeat`, `glm::mirrorClamp` and `glm::mirrorRepeat` function to `GLM_EXT_scalar_commond` and `GLM_EXT_vector_commond` extensions with tests
|
- Added `glm::clamp`, `glm::repeat`, `glm::mirrorClamp` and `glm::mirrorRepeat` function to `GLM_EXT_scalar_common` and `GLM_EXT_vector_common` extensions with tests
|
||||||
|
|
||||||
#### Fixes:
|
#### Fixes:
|
||||||
- Fixed unnecessary warnings from `matrix_projection.inl` #995
|
- Fixed unnecessary warnings from `matrix_projection.inl` #995
|
||||||
@ -193,7 +193,7 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Fixed `glm::ldexp` and `glm::frexp` declaration #895
|
- Fixed `glm::ldexp` and `glm::frexp` declaration #895
|
||||||
- Fixed missing const to quaternion conversion operators #890
|
- Fixed missing const to quaternion conversion operators #890
|
||||||
- Fixed *GLM_EXT_scalar_ulp* and *GLM_EXT_vector_ulp* API coding style
|
- Fixed *GLM_EXT_scalar_ulp* and *GLM_EXT_vector_ulp* API coding style
|
||||||
- Fixed quaternion componant order: `w, {x, y, z}` #916
|
- Fixed quaternion component order: `w, {x, y, z}` #916
|
||||||
- Fixed `GLM_HAS_CXX11_STL` broken on Clang with Linux #926
|
- Fixed `GLM_HAS_CXX11_STL` broken on Clang with Linux #926
|
||||||
- Fixed *Clang* or *GCC* build due to wrong `GLM_HAS_IF_CONSTEXPR` definition #907
|
- Fixed *Clang* or *GCC* build due to wrong `GLM_HAS_IF_CONSTEXPR` definition #907
|
||||||
- Fixed *CUDA* 9 build #910
|
- Fixed *CUDA* 9 build #910
|
||||||
@ -262,8 +262,8 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Redesigned constexpr support which excludes both SIMD and `constexpr` #783
|
- Redesigned constexpr support which excludes both SIMD and `constexpr` #783
|
||||||
- Added detection of *Visual C++ 2017* toolsets
|
- Added detection of *Visual C++ 2017* toolsets
|
||||||
- Added identity functions #765
|
- Added identity functions #765
|
||||||
- Splitted headers into EXT extensions to improve compilation time #670
|
- Split headers into EXT extensions to improve compilation time #670
|
||||||
- Added separated performance tests
|
- Added separate performance tests
|
||||||
- Clarified refract valid range of the indices of refraction, between -1 and 1 inclusively #806
|
- Clarified refract valid range of the indices of refraction, between -1 and 1 inclusively #806
|
||||||
|
|
||||||
#### Fixes:
|
#### Fixes:
|
||||||
@ -294,7 +294,7 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Added *GLM_EXT_vector_relational*: `glm::openBounded` and `glm::closeBounded`
|
- Added *GLM_EXT_vector_relational*: `glm::openBounded` and `glm::closeBounded`
|
||||||
- Added *GLM_EXT_vec1*: `*vec1` types
|
- Added *GLM_EXT_vec1*: `*vec1` types
|
||||||
- Added *GLM_GTX_texture*: `levels` function
|
- Added *GLM_GTX_texture*: `levels` function
|
||||||
- Added spearate functions to use both nagative one and zero near clip plans #680
|
- Added separate functions to use both negative one and zero near clip plans #680
|
||||||
- Added `GLM_FORCE_SINGLE_ONLY` to use *GLM* on platforms that don't support double #627
|
- Added `GLM_FORCE_SINGLE_ONLY` to use *GLM* on platforms that don't support double #627
|
||||||
- Added *GLM_GTX_easing* for interpolation functions #761
|
- Added *GLM_GTX_easing* for interpolation functions #761
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Fixed `glm::axisAngle` NaN #638
|
- Fixed `glm::axisAngle` NaN #638
|
||||||
- Fixed integer pow from *GLM_GTX_integer* with null exponent #658
|
- Fixed integer pow from *GLM_GTX_integer* with null exponent #658
|
||||||
- Fixed `quat` `normalize` build error #656
|
- Fixed `quat` `normalize` build error #656
|
||||||
- Fixed *Visual C++ 2017.2* warning regarding `__has_feature` definision #655
|
- Fixed *Visual C++ 2017.2* warning regarding `__has_feature` definition #655
|
||||||
- Fixed documentation warnings
|
- Fixed documentation warnings
|
||||||
- Fixed `GLM_HAS_OPENMP` when *OpenMP* is not enabled
|
- Fixed `GLM_HAS_OPENMP` when *OpenMP* is not enabled
|
||||||
- Fixed Better follow GLSL `min` and `max` specification #372
|
- Fixed Better follow GLSL `min` and `max` specification #372
|
||||||
@ -499,7 +499,7 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
#### Fixes:
|
#### Fixes:
|
||||||
- Fixed asinh and atanh warning with C++98 STL #484
|
- Fixed asinh and atanh warning with C++98 STL #484
|
||||||
- Fixed polar coordinates function latitude #485
|
- Fixed polar coordinates function latitude #485
|
||||||
- Fixed outerProduct defintions and operator signatures for mat2x4 and vec4 #475
|
- Fixed outerProduct definitions and operator signatures for mat2x4 and vec4 #475
|
||||||
- Fixed eulerAngles precision error, returns NaN #451
|
- Fixed eulerAngles precision error, returns NaN #451
|
||||||
- Fixed undefined reference errors #489
|
- Fixed undefined reference errors #489
|
||||||
- Fixed missing GLM_PLATFORM_CYGWIN declaration #495
|
- Fixed missing GLM_PLATFORM_CYGWIN declaration #495
|
||||||
@ -670,8 +670,8 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
- Optimized bitfieldReverse and bitCount functions
|
- Optimized bitfieldReverse and bitCount functions
|
||||||
- Optimized findLSB and findMSB functions.
|
- Optimized findLSB and findMSB functions.
|
||||||
- Optimized matrix-vector multiple performance with Cuda #257, #258
|
- Optimized matrix-vector multiple performance with Cuda #257, #258
|
||||||
- Reduced integer type redifinitions #233
|
- Reduced integer type redefinitions #233
|
||||||
- Rewrited of GTX_fast_trigonometry #264 #265
|
- Rewrote GTX_fast_trigonometry #264 #265
|
||||||
- Made types trivially copyable #263
|
- Made types trivially copyable #263
|
||||||
- Removed <iostream> in GLM tests
|
- Removed <iostream> in GLM tests
|
||||||
- Used std features within GLM without redeclaring
|
- Used std features within GLM without redeclaring
|
||||||
@ -953,7 +953,7 @@ generation distribution
|
|||||||
- Added GLM_GTX_constants: provides useful constants
|
- Added GLM_GTX_constants: provides useful constants
|
||||||
- Added extension versioning
|
- Added extension versioning
|
||||||
- Removed many unused namespaces
|
- Removed many unused namespaces
|
||||||
- Fixed half based type contructors
|
- Fixed half based type constructors
|
||||||
- Added GLSL core noise functions
|
- Added GLSL core noise functions
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -1190,7 +1190,7 @@ generation distribution
|
|||||||
|
|
||||||
---
|
---
|
||||||
### GLM 0.7.6 final - 2008-08-08
|
### GLM 0.7.6 final - 2008-08-08
|
||||||
- Improved C++ standard comformance
|
- Improved C++ standard conformance
|
||||||
- Added Static assert for types checking
|
- Added Static assert for types checking
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -1251,7 +1251,7 @@ generation distribution
|
|||||||
|
|
||||||
---
|
---
|
||||||
### GLM 0.5.0 - 2007-01-06
|
### GLM 0.5.0 - 2007-01-06
|
||||||
- Upgrated to GLSL 1.2
|
- Upgraded to GLSL 1.2
|
||||||
- Added swizzle operators
|
- Added swizzle operators
|
||||||
- Added setup settings
|
- Added setup settings
|
||||||
|
|
||||||
|
@ -468,7 +468,7 @@ static int testCovar(
|
|||||||
return failReport(__LINE__);
|
return failReport(__LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #2: test function variant consitency with random data
|
// #2: test function variant consistency with random data
|
||||||
#if GLM_HAS_CXX11_STL == 1
|
#if GLM_HAS_CXX11_STL == 1
|
||||||
std::default_random_engine rndEng(randomEngineSeed);
|
std::default_random_engine rndEng(randomEngineSeed);
|
||||||
std::normal_distribution<T> normalDist;
|
std::normal_distribution<T> normalDist;
|
||||||
@ -560,7 +560,7 @@ static int smokeTest()
|
|||||||
if(eCnt != 3u)
|
if(eCnt != 3u)
|
||||||
return failReport(__LINE__);
|
return failReport(__LINE__);
|
||||||
|
|
||||||
// sort eVec by decending eVal
|
// sort eVec by descending eVal
|
||||||
if(eVal[0] < eVal[1])
|
if(eVal[0] < eVal[1])
|
||||||
{
|
{
|
||||||
std::swap(eVal[0], eVal[1]);
|
std::swap(eVal[0], eVal[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user