Lynix
009d860d6c
Math/Algorithm: Clean code
...
Former-commit-id: 5133320f4cf04e78d3cf7d66dbbe6f87f44b4bdc
2015-06-13 17:34:06 +02:00
Lynix
3aa6fb9efd
Math/Algorithm: Fix Visual Studio error
...
Former-commit-id: c426979b55e11db423f08a713cb41c7407886d02
2015-06-07 15:19:37 +02:00
Lynix
2bba1be938
Math: Add M_SQRT3 constant, fix sphere radius calculations
...
Former-commit-id: 71ac4d3522f427fda60a0e71d76eca7558539187
2015-05-26 23:39:01 +02:00
Lynix
b0f418c481
Math/Matrix4: Add GetSquaredScale() method
...
Former-commit-id: c1ce74560b735dbcd5a4c377a7577a9d2c1bae09
2015-05-26 23:38:06 +02:00
Lynix
41afb3a3a1
Math/OrientedBox: Add Update(Vector3) overload
...
Former-commit-id: 3d9e75d78d1242b4ee75500c2b9ef4e38b2a7453
2015-05-26 00:07:48 +02:00
Youri Hubaut
2cb669a558
TaskSchedulerImpl for POSIX and compilation fixes
...
Former-commit-id: a402d40ac90cacf444b5832c49cfbdaf61f7f747
2015-05-16 13:10:54 +02:00
Lynix
446f537e3f
Merge branch 'master' into NDK
...
Conflicts:
src/Nazara/Physics/Geom.cpp
Former-commit-id: 8fd71e34dbe105890042acc55e30b64e7c457ed4
2015-05-06 23:45:41 +02:00
Lynix
55b94f2bbf
Math/Matrix: Removed deprecated comment
...
Former-commit-id: f29b0b453b1313e991f783e8e3be183faa29d8bd
2015-05-06 23:33:07 +02:00
Lynix
3fd217b8a3
Merge branch 'master' into NDK
...
Former-commit-id: 7f2646da9f2e2c29157e645afbcfcf974f0e0709
2015-03-19 13:13:20 +01:00
Lynix
0363a1a8fa
(Box|Rect) Fixed Contains method excluding edge vectors
...
Former-commit-id: f3281ad9f7af268fceccfdb9d4f67ac0ac76b445
2015-03-19 12:49:08 +01:00
Lynix
5c3720feb1
Merge branch 'master' into NDK
...
Former-commit-id: f118c029ca94296495957816f910d412ae8a56f2
2015-03-18 20:44:52 +01:00
Lynix
2bde611d33
(Math) Added CountBits function
...
Former-commit-id: 11e825a95a7bda300e46eb321f0fdb51bea93343
2015-03-16 15:16:05 +01:00
Lynix
458fba2180
(Math) Improved code and added comments
...
Former-commit-id: 3cf198715ac83e3d85d572d4ed0a3c6988074d0d
2015-03-16 14:54:07 +01:00
Lynix
3e214678c3
(Math) Added IntegralLog2(Pot) functions
...
Former-commit-id: 2def88ebf1e0ec2c908b2da4df60ff9e8075f8f1
2015-03-16 13:53:48 +01:00
Lynix
ca88c5bae4
Optimized NumberToString algorithm
...
Fixed useless allocation made by String::Reversed
Former-commit-id: c41c1d5fea3ebb55978fd63284d25c2ad3971ac1
2015-02-18 21:03:36 +01:00
Lynix
cdff689403
(Ray) Fixed Intersect(Plane, T) method
...
Former-commit-id: 5acfae80d778087a2e2b423d34da8a218a802cd4
2015-01-24 16:18:06 +01:00
Lynix
0e48f052e5
Fixed GetNearestPowerOfTwo function
...
Returning the next POT even if the number was a POT itself
Former-commit-id: 812f35d13a99985ca5c12517cd84de22292e52c7
2015-01-24 14:34:36 +01:00
Lynix
ea8d683624
Updated copyright year
...
(532 files, wow)
Former-commit-id: cbb31f1124a86720bd3a54fe589a0f849a87b434
2015-01-21 20:53:01 +01:00
Gawaboumga
3933b07094
Suppression of warnings
...
OffsetOf: use of static_cast
Updatable: API and virtual destructor
Drawable: virtual destructor
Vector: std::abs should be "the" abs.
AbstractClass: API
+Updatable: Like for others abstracts
Buffer: nullptr for pointer to function.
Image: wasn't returning a vector.
Former-commit-id: 57e0009286a02b9e3b0b81945e500d7d9e466ae2
2015-01-21 13:51:49 +01:00
Lynix
7e9c5e9a06
Improved NomalizeAngle function
...
Former-commit-id: 79793b0c57a333e6d2d4a41a14f2b7fdc1d1f093
2015-01-20 15:05:37 +01:00
Lynix
304b46b17d
Merge remote-tracking branch 'origin/Particle-Update'
...
Former-commit-id: 272203af1d740dc32e9714e00e4f889db6b13350
2015-01-19 02:23:07 +01:00
Lynix
5daf09e41b
Added OpenGL-like Vector constructors
...
Former-commit-id: 302389b6a915d66a0a0fb4cc9a748ed5266ae98c
2015-01-05 02:32:57 +01:00
Lynix
7c47a93a72
Renamed Corner enum to BoxCorner
...
Added RectCorner and Rect::GetCorner method
Former-commit-id: dc99823ceb17f6e91cdf12779c982ab7e024ec24
2015-01-03 22:31:25 +01:00
Lynix
a1624af969
Improved [Box|Rect]::Intersect performances
...
Allowed early returns
Former-commit-id: 59001afdd9734666640d440cb8b87b5a426973ce
2015-01-03 22:15:15 +01:00
Lynix
5ae54677f1
Fixed Matrix4::IsIdentity()
...
Former-commit-id: 7f3dfb47241ec2625e7ba02decb53ad5fd3d60ac
2014-12-07 03:04:04 +01:00
Lynix
68bd3304c6
Renamed Degrees|Radians functions to From[Degrees|Radians]
...
Also added To[Degrees|Radians] functions
Former-commit-id: b7445a42e5ee88319009db9d664d8d9f8fe88c18
2014-09-06 11:52:37 +02:00
Lynix
1b94977722
Added Quaternion::Normalize static method
...
Former-commit-id: a4530be00673dec5b9731b75fb4edbac7ccd69d5
2014-09-03 13:30:12 +02:00
Lynix
4acd61cf30
Fixed Vector[2|3]::Normalize returning NaN for zero vectors
...
Former-commit-id: e849a14189ff178134358d4ceed87955bc9f8eae
2014-08-05 17:38:49 +02:00
Lynix
43b4f696b2
Added FIXME
...
Former-commit-id: 61dfdb35eb265a34c94913947f4ae9164e79c0d9
2014-08-05 09:41:57 +02:00
Lynix
d9cce5d7ce
Fixed compilation error
...
Former-commit-id: febc503b22cedaa4edf0efe3677cf38a205d7230
2014-07-29 10:30:49 +02:00
Lynix
454a5b1281
Added Matrix4::Get[Column|Row]
...
Former-commit-id: 5dc655f97d8523714c69627e70b3bf8dfdcdb1ae
2014-07-28 16:16:32 +02:00
Lynix
60d5c09c18
Renamed Basic.hpp to Algorithm.hpp
...
Former-commit-id: ba2858d26fb55069313fafc3e4464dc2e9224b7d
2014-07-28 15:18:39 +02:00
Lynix
90a616a26f
Made code more readable (Weeeee)
...
Former-commit-id: fa2a7686130fe67aa4da9f590a8f74c1b5e75ca9
2014-07-28 12:26:37 +02:00
Lynix
4a0dbcb338
Updated Basic.inl
...
Fixed StringToNumber not working with lowercase numbers
Moved functions order to be alphabetical
Former-commit-id: ff58d17afe38c39527a6ae898bfeb7f3282b2142
2014-07-28 12:24:57 +02:00
Lynix
4ccf021376
Fixed EulerAngles operator+= return type
...
Thanks to Raakz
Former-commit-id: 2247fe952cd593adea90336ea7f8507e83dea3b1
2014-07-15 01:01:37 +02:00
Lynix
10a17bbf68
Removed debug code (Oops)
...
Former-commit-id: 48bd8955884352990a3a00b1453fcfc101fa7781
2014-07-10 10:41:50 +02:00
Lynix
3dac383486
Improved Ray class
...
Former-commit-id: 97a9a50440476e962cc850a09859b0784976c242
2014-07-10 10:11:17 +02:00
Lynix
2479588811
Removed toDegree arg from VectorI::AngleBetween
...
Former-commit-id: 6b5e141e7c291dadedbfd237f5f22615ce5dcfee
2014-07-10 10:03:35 +02:00
Lynix
7103c28d49
Merge pull request #27 from Gawaboumga/master
...
Merging Gawaboumga pull request (#27 ), fixes are coming
Former-commit-id: 81079fd052538e15b7e919aea106cfb5a88a87a6
2014-07-08 16:24:46 +02:00
Lynix
b51845d88f
Added Matrix4::Concatenate static method
...
Former-commit-id: 842e86a89fb7468552d6a9473a228bfb7a8a3809
2014-07-08 16:15:05 +02:00
Lynix
c4b10dddda
Big config/debug update
...
Added config checkers
Macro no longer use suffixes
Moved MemoryManager to upper directory
Renamed *_MEMORYMANAGER to *_MANAGE_MEMORY
Renamed AUDIO_STREAMEDBUFFERCOUNT to AUDIO_STREAMED_BUFFER_COUNT
Renamed CORE_REAL_PRECISION to CORE_DECIMAL_DIGITS
Renamed DEBUG_MEMORYMANAGER_DISABLE_REDEFINITION to
DEBUG_NEWREDEFINITION_DISABLE_REDEFINITION
Renamed GRAPHICS_MAX_LIGHTPERPASS to GRAPHICS_MAX_LIGHT_PER_PASS
Renamed UTILITY_FORCE_DECLARATION_STRIDE_MULTIPLE_OF_32 to
UTILITY_VERTEX_DECLARATION_FORCE_STRIDE_MULTIPLE_OF_32
Former-commit-id: 81ef836ac9f092ac471f60e544bb7c7c6370593c
2014-07-08 10:56:37 +02:00
Gawaboumga
60d045e139
Suppressions of getters
...
Former-commit-id: db5ae144a8eb8794e7df9981805d2250bbd8b4ee
2014-07-04 11:31:51 +02:00
Gawaboumga
ba7f3606a0
Obb intersect ray
...
New method
Former-commit-id: 282a82d773f61fcec8026eb4ccb74e8b2de9784f
2014-07-04 11:22:47 +02:00
Gawaboumga
31d54d4706
UTF8
...
Former-commit-id: 3cbdbcc5dd8cc73b5efc40f62e3b6a9619f628cc
2014-07-01 11:06:16 +02:00
Gawaboumga
45fc9158e4
Add of source
...
Add of the source
Former-commit-id: f3d01ef18ccc1ae906693f388e696c0763576a3b
2014-07-01 10:57:43 +02:00
Lynix
d9c38181a5
Added (U)Int32 typedef for Box,Rect and VectorI classes
...
Former-commit-id: 20fcc8e7ccde6f5306c08058ad477e81cfb2d204
2014-06-30 10:52:25 +02:00
Gawaboumga
7ba72ef1c6
Little fail again
...
Wrong getter
Former-commit-id: 951d0a46d189c13009854f4bad43e7a243470f03
2014-06-28 11:45:10 +02:00
Gawaboumga
1aebcd83b0
Merge remote-tracking branch 'upstream/master'
...
Former-commit-id: 124b89e1c31a7b907f88d8c7a234473274d5a0f6
2014-06-28 09:05:16 +02:00
Gawaboumga
5e709001ad
Little fail
...
Plane: Forgot <T>
Former-commit-id: 46f5c4a501fcf1ed841e28474cf5bca8e7baa438
2014-06-28 09:03:56 +02:00
Lynix
032b2ed79b
Removed explicit VectorI::operator[]
...
Since Vector instances can be implicitely converted to T*, native
operator[] will work on them
Former-commit-id: 3f4a1822c514886dee7d9e5dab816c80e5c5ee99
2014-06-27 21:15:11 +02:00
Gawaboumga
f3ccd60b5f
New class ray
...
Class ray who represents a ray in space and who can be used as a line.
Support of classical intersections.
Former-commit-id: 2ea5af0cf749dbefdd841f9b02bfab2af5058cdb
2014-06-27 19:39:51 +02:00
Gawaboumga
ca595bca20
Add of some mathematical functions
...
Plane: Getters and classic planes
Sphere: Getter
Vector2: Angle between two vectors
Vector3: Same in 3D
Former-commit-id: 07e6421def813743e5fd8248fe2e9503cebbb8a8
2014-06-27 19:33:28 +02:00
Gawaboumga
9f17722afd
Little corrections
...
HashDigest: Simultaneous use of int and short
EulerAngles: Use of the macro
Geom: cone was missing
Former-commit-id: ecc3a586732a6711b57ce3e79c5450ef7327bb5b
2014-06-27 19:11:45 +02:00
Lynix
48eb59eba8
Commited missing file (from 7dfb82)
...
Former-commit-id: 90aba1cc976830fd78efdd3d03764345b92df24d
2014-06-22 15:12:54 +02:00
Lynix
dc3f3eb344
Fixed some of the pull request code in order to merge it
...
Former-commit-id: d8a9734fc622cb57f98b3b6abd2579922d562aa0
2014-06-22 15:12:52 +02:00
Lynix
a6d6213b9d
Commited missing file (from 7dfb82)
...
Former-commit-id: 4961498d557dea7101960beb4f2eb6b0a3060368
2014-06-17 15:53:57 +02:00
Lynix
eceabcd241
Fixed some of the pull request code in order to merge it
...
Former-commit-id: 76d71f15b335535e7dfcaf986440a00e85e45c1b
2014-06-15 01:55:07 +02:00
Gawaboumga
676ed6c9d8
Correction of mathematical functions.
...
BoundingVolume: Add of constructor and setter OrientedBox. Extend is now
up to date.
Box: Use of <T>. Return this
Frustrum: Use of <T>
Matrix: Use of <T>
OrientedBox: m_corners is up to date
Rect: Add of operators /= and /. Return this
Sphere: Add of Intersect and Contains with box. Little corrections.
Vector2: Return
TaskSchedulerImpl: Add of include header cstdlib to compile because of
std::div
HardwareInfo/main: use of accentAigu
Former-commit-id: a5a7f8e8c45448e5683eb13bff453d6f67478d03
2014-06-14 22:10:37 +02:00
Lynix
1ba07cf69c
Removed Matrix4 "identity optimization"
...
Returned Matrix4 to a POD type
Former-commit-id: 658f7d41b5d5f7d70b9d6531456ae2e498c469d2
2014-04-20 14:29:55 +02:00
Lynix
7196d8399f
Made use of constexpr keyword
...
Former-commit-id: 79bc50ffaa21947dacd18578a34f6be65285821b
2014-04-02 01:02:47 +02:00
Lynix
a441a30beb
StringToNumber no longer throw an error on failure
...
Former-commit-id: 8d191884c4ba757179e0c374a8ee2db756d1064b
2014-01-19 10:54:59 +01:00
Lynix
c096756dab
Happy thousandth commit Nazara
...
Updated copyright year (Yay, 515 file updated)
Regenerated global headers
Fixed some typo
Improved some shaders
-Blah blah blah-
Thank you all for supporting my project !
-Lynix
Former-commit-id: e4e741b318ba4f203da5ffd265bd5e516e7ffd7d
2014-01-12 20:16:21 +01:00
Lynix
a560a16ef3
Lerp no longer fail when interpolation is not in range [0..1]
...
Former-commit-id: b9d4179cbd82f709695719dbc47f9d0f9d98841e
2013-12-20 19:59:28 +01:00
Lynix
b05f813e70
Added NzMultiplyAdd
...
Use hardware FMA (or at least faster FMA) when possible
Former-commit-id: fd5134d2aebe924fb8c9148224101dd7d340bb5f
2013-12-09 14:13:37 +01:00
Lynix
43df67d47b
Fixed NzNumberEquals not working with integers
...
Former-commit-id: 9ce3889c1e4364f7e8f90a1d81c3a8921c5cd0b6
2013-12-07 23:46:46 +01:00
Lynix
0520de7ab0
Fixed Vector3::operator[==|<=]
...
Thanks to OveRdrivR
Former-commit-id: fa93eb7124e3b322407d1488c8530312c2019792
2013-09-30 23:19:38 +02:00
Lynix
ffbff9e707
Fixed compilation errors
...
Former-commit-id: 1ba7f27b5e56aee1ffc34459ab64d56bfe359dfe
2013-09-23 00:22:18 +02:00
Lynix
db2b33eda1
Fixed Vector2::Normalize
...
Former-commit-id: c781e64262c0fbce2782f635c2db13478f18a9d5
2013-09-20 21:31:07 +02:00
Lynix
693aec36c3
Fixed bounding box AABB
...
Former-commit-id: ef8ec52e7bffca69b1e41462f0971e00a1b73029
2013-09-16 01:03:06 +02:00
Lynix
f0eac2bc0d
Fixed compilation error
...
Former-commit-id: 13b96b7bba638a1843a00264068e1c4858e6d301
2013-09-16 00:36:50 +02:00
Lynix
74d396a376
Added warning when clip matrix is not invertible
...
Former-commit-id: 4707faab0259062ad619a5e5c72fcbbfaf853e3c
2013-08-22 10:50:53 +02:00
Lynix
5d0ed4f27c
Removed warning when Matrix4 is not invertible
...
Former-commit-id: d16c6153dfafadc628cb9af9e4ed707045833616
2013-08-22 10:50:39 +02:00
Lynix
26f120cc66
Fixed Matrix4::[Make]Ortho parameters name
...
Former-commit-id: ad6a90025e6502ceff9add2c5ecd6c7b83483f38
2013-08-21 19:39:04 +02:00
Lynix
b9b572c60c
Fixed warning
...
Former-commit-id: d6ac174b7ad2a365158ccda0300e62aed5bd8a7b
2013-08-19 23:37:23 +02:00
Lynix
35bd693216
Fixed Matrix4::(Make)Ortho
...
Former-commit-id: fb65916496b8c28c21dcaf6c623ab1427a6e7767
2013-08-16 00:23:03 +02:00
Lynix
efd6185f56
Added Box::GetSquaredBoundingSphere
...
Former-commit-id: 12ecb5d84f44e39ddacb96b83a897f618337c2e1
2013-07-31 14:18:47 +02:00
Lynix
84ebd6043c
Sphere::Distance now returns distance between center and point
...
No more negative distances
Former-commit-id: 1688b82e88621e20312b6b28090ed63941b3e02a
2013-07-31 14:18:27 +02:00
Lynix
35d9a2fef7
Fixed Vector2 division operators
...
Former-commit-id: cceddfe0bdb1ac94355ad3d04e4c9dab51d2edce
2013-07-01 16:04:50 +02:00
Lynix
f4ef89bb32
Made Matrix4::ConcatenateAffine more robust
...
Former-commit-id: 7d6f74959b29a597fa9b08d8d3c58fbaf9e2555e
2013-06-27 18:56:05 +02:00
Lynix
ebf402f138
Added GetNearestPowerOfTwo
...
Former-commit-id: 609d470e8478c659b816ad7d34fb9d56ad551b07
2013-06-18 21:06:41 +02:00
Lynix
7f9455b947
Added Matrix4::(Make)ViewMatrix
...
Former-commit-id: 4a21da456f90c5d0c53c291885b3a214be893b5e
2013-06-10 16:41:25 +02:00
Lynix
6b2af70f1d
Cleaned interface
...
Former-commit-id: cdd284de8396d5988853c84d5db17bfa6fa0ba51
2013-06-09 22:05:05 +02:00
Lynix
a478926570
Fixed (I hope) Matrix4::GetRotation()
...
Former-commit-id: 9480437dde664034d7e44c81a3931922c215b646
2013-06-09 16:00:44 +02:00
Lynix
273391d8cb
Added optionnal parameter to NumberEquals(a, b)
...
Former-commit-id: 30e69529d7e15857046327edd6cbe587a3951fa3
2013-06-09 15:53:49 +02:00
Lynix
7a7cfc3092
Added [Box|Rect]::Translate
...
Former-commit-id: 72b4cd351a7233df89709366fbe7ce59e4ba94e7
2013-06-09 15:50:56 +02:00
Lynix
bb31a1666f
Added [Box|Rect]::Get[Maximum|Minimum]()
...
Former-commit-id: 5226f2dfd2beaec2bc9075543f555cc48a457e3a
2013-06-09 15:41:57 +02:00
Lynix
c940abdb75
Renamed [Box|Rect]::GetSize() to GetLengths()
...
Former-commit-id: 3c122057634a6472034b284bfe7091acbb41d004
2013-06-09 15:34:36 +02:00
Lynix
910a79fc84
Cleaned interface
...
Former-commit-id: b5f1871c164dd72098e389b76edf0994fb1fb124
2013-06-05 15:56:51 +02:00
Lynix
fb839de33e
Renamed (Oriented)Cube to (Oriented)Box
...
Also renamed BoundingBox to BoundingVolume
Former-commit-id: 795c70c265ba17f6b96fc30799e89f140c52852b
2013-06-03 14:18:31 +02:00
Lynix
a3f1417abd
Added Matrix4::Apply[Rotation|Translation]
...
Former-commit-id: 1c59aa48f057d4bdc4b4413e349d2b4290dec055
2013-06-03 12:57:20 +02:00
Lynix
c99ab36ebe
Made Cube/Rect more user-friendly
...
Former-commit-id: 13ac0b9f6428059596c98f636caf61afd2a436b7
2013-05-30 03:02:43 +02:00
Lynix
465a7c246d
Added Identity Matrix optimization
...
Former-commit-id: c426c3098659f9cf74fd7da33cadabe38a158358
2013-05-30 02:58:20 +02:00
Lynix
b3f60e90fd
Fixed Quaternion::(Make)RotationBetween
...
Could not handle parallel vectors
Former-commit-id: 3fed3a46d443b208dc95a5bcd29dd43fb7960114
2013-05-30 02:56:58 +02:00
Lynix
c05c22c97a
Fixed Frustum::GetPlane not compiling in debug
...
Former-commit-id: efe801b21f50803368aea4c5442a43c1621545f6
2013-05-16 22:21:33 +02:00
Lynix
6d2a1118bc
Implemented Matrix4::GetRotation
...
Former-commit-id: 90e0b6942497c1337ac3873d3990515284df4aa6
2013-05-16 22:21:16 +02:00
Lynix
6c743a89b9
Added Quaternion::(Make)RotationBetween
...
Former-commit-id: e28517580bd17970e77a38f54e7c114cdaf402d5
2013-05-13 12:52:39 +02:00
Lynix
16004fd41c
Added IntegralPow function
...
Former-commit-id: c04d3bf6365f3ced475405a85285b3956a066c47
2013-05-13 12:52:12 +02:00
Lynix
991d841d57
Made String(char) explicit
...
Former-commit-id: 02f5ead8fe60b825464f956d9fc6ea4689bda44b
2013-05-11 13:51:56 +02:00
Lynix
a8066a58af
Added Matrix4::(Make)Transform(T, R)
...
Former-commit-id: 556554c8cc589dfe64b3a8be903f62af894011c4
2013-05-03 02:50:38 +02:00
Lynix
961c658ae1
Changed Matrix4::(Make)Transform argument pos
...
To reflect "TRS" transformation
Also removed an useless line
Former-commit-id: b60a70d04797f40f3490b26706740b375fe38421
2013-05-01 01:35:17 +02:00