141 Commits

Author SHA1 Message Date
mafiesto4 87cb553c61 Optimize Vector3 method to be inlined more often 2022-02-28 19:14:14 +01:00
mafiesto4 3c9a5bcf1a Fix CollisionsHelper::ClosestPointPointTriangle 2022-02-08 19:55:55 +01:00
mafiesto4 465c857ff2 Fix bounding box size setter 2022-01-17 10:12:05 +01:00
mafiesto4 cfa5aa6a61 Add math unit tests for c++ 2022-01-14 19:09:54 +01:00
mafiesto4 8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
mafiesto4 821ba0ec3b Add Rectangle.Distance for distance between rectangle and a point 2021-12-14 17:00:13 +01:00
mafiesto4 4a191f5f6c Merge branch 'MiscellaneousImprovements' of git://github.com/intolerantape/FlaxEngine into intolerantape-MiscellaneousImprovements 2021-12-07 18:23:20 +01:00
mafiesto4 ea71e8cbe6 Tweaks for doc comments 2021-12-07 18:23:01 +01:00
intolerantape 6ed655f8c3 Implementated Math::SinCos() overload taking doubles as parameters. 2021-12-02 07:17:38 -08:00
mafiesto4 1b3790f60e Fix regression from 74f813ed3e 2021-11-30 20:17:16 +01:00
mafiesto4 2114002803 Cleanup xml docs 2021-11-27 13:07:21 +01:00
mafiesto4 74f813ed3e Optimize UI in Editor 2021-11-27 13:07:09 +01:00
mafiesto4 a9c56caf84 Optimize Math.NearEqual 2021-11-23 23:17:05 +01:00
mafiesto4 24e5d4635d Add Mathf.Frac 2021-11-07 21:39:09 +01:00
mafiesto4 5f7112a404 Add Quaternion::FromDirection to C++ 2021-11-03 10:44:12 +01:00
mafiesto4 b79feda477 Add ToString for some packed vector types 2021-10-27 16:38:50 +02:00
mafiesto4 cc7959a390 Add explicit operator for Color32 to Int4 2021-10-25 23:23:33 +02:00
mafiesto4 8610db2e63 Code style tweaks 2021-10-11 14:39:46 +02:00
mafiesto4 6dc40d0c93 Fix possible division by zero in BoundingFrustum::GetCorners
#648
2021-10-11 14:39:29 +02:00
mafiesto4 9450111ae6 Fix possible division by zero in Plane.Normalize
#648
2021-10-11 14:32:34 +02:00
intolerantape 9ee0773ab1 Moved the various Vector::Angle functions into their respective CPP files.
They didn't seem like prime candidates for inlining.
2021-09-30 13:30:55 -07:00
intolerantape f25dae2da2 Added Double3::Angle 2021-09-30 12:24:30 -07:00
intolerantape 31c92cd94c Added Double2::Angle() 2021-09-30 12:22:12 -07:00
intolerantape 06a4c30cc0 Updated Double3.h and Double3.cpp
Added a constructor with Vector3 input and cleaned up some documentation. Also fixed a parameter name and some weird extra whitespace.
2021-09-29 20:46:50 -07:00
intolerantape 6150aaaa77 Update Vector4.h
Added some missing explicit tags to Vector4 constructors to match the pattern established by other Vector types.
2021-09-29 20:46:49 -07:00
intolerantape 6657bc924b Updated Double4.h and Double4.cpp
Added a constructor with Vector4 input and cleaned up some documentation.
2021-09-29 20:46:49 -07:00
intolerantape 81390cf860 Added InverseLerp to Math.h
Ported from C#
2021-09-29 20:46:48 -07:00
intolerantape eb928091b6 Added GetForward() and GetBackward() methods to Transform class. 2021-09-29 20:46:47 -07:00
mafiesto4 d4d38e94cb Merge branch 'Vector-Angle-Functions-CPP' of git://github.com/intolerantape/FlaxEngine into intolerantape-Vector-Angle-Functions-CPP 2021-09-23 12:22:45 +02:00
mafiesto4 53022ff013 Fix code quality issues detected by PVS-Studio 2021-09-21 18:23:31 +02:00
intolerantape 134260ba52 Added Vector*::Angle functions to C++
Directly ported the C# versions of the function.
2021-09-11 06:02:11 -07:00
mafiesto4 50bdffb381 Tweaks 2021-08-31 09:36:15 +02:00
Jean-Baptiste Perrier 5aaf09018f Add missing NearEqual for double 2021-08-18 12:49:53 +02:00
Jean-Baptiste Perrier c8ceb4f86b Add DoubleX constructors for VectorX 2021-08-18 12:49:38 +02:00
Jean-Baptiste Perrier e655ee6b78 Tweaks Double2 2021-08-18 12:49:12 +02:00
Jean-Baptiste Perrier 281673dd6b Add Double4 impl. cpp 2021-08-18 12:48:52 +02:00
Jean-Baptiste Perrier eedca14e6f Add Double3 impl. cpp 2021-08-18 12:48:39 +02:00
Jean-Baptiste Perrier 8f56f7fdfe Merge branch 'math-double' of https://github.com/jb-perrier/FlaxEngine into double-vectors 2021-08-12 20:49:00 +02:00
Jean-Baptiste Perrier 2d9627df33 Tweak docs 2021-08-12 19:00:41 +02:00
Jean-Baptiste Perrier 8dc864d22f Add Double2 vector implementation 2021-08-12 15:21:11 +02:00
Jean-Baptiste Perrier 2948bfbed0 Backward compatibility (Mathd -> Math), fix and remove warnings. 2021-08-12 14:15:26 +02:00
Jean-Baptiste Perrier 2c30f48900 Tweak 2021-08-12 13:51:06 +02:00
Jean-Baptiste Perrier 69aac09be8 Add Mathd.cs implementation 2021-08-12 13:50:34 +02:00
Jean-Baptiste Perrier 2799136ccb Remove Double operation from Math.h 2021-08-12 13:49:47 +02:00
Jean-Baptiste Perrier 328027300d Add Mathd implementation. 2021-08-12 13:49:21 +02:00
Jean-Baptiste Perrier 3aecbd75a3 Remove unused include. 2021-08-12 13:48:45 +02:00
Nejcraft 52ba7a7a08 I shouldn't code at 4 in the morning :D 2021-07-16 11:40:57 +02:00
Nejcraft af8856188d Rectangle distance
Will be usefull for my UI nav
2021-07-16 04:32:47 +02:00
mafiesto4 929476a322 Optimize various engine code 2021-07-08 12:59:45 +02:00
mafiesto4 419f8db538 Optimize BoundingSphere::FromBox 2021-06-30 13:42:22 +02:00