Callum Law
7182a537f3
LibWeb: Reduce inaccuracies when creating rotation matrices
...
When converting rotate transform functions `sin` and `cos` can sometimes
be inaccurate. To avoid these inaccuracies we:
- Mod the angle to minimise inaccuracies in the first place.
- Discard tiny (smaller than epsilon) values returned by `sin` and
`cos` as inaccuracies.
This is in line with other browsers (e.g. Gecko and WebKit).
2025-08-11 17:10:04 +01:00
Arran Ireland
9a8599f265
LibGfx+LibMedia+LibWeb: Use new Matrix subscript operator
2025-07-28 09:15:23 +02:00
Timothy Flynn
7280ed6312
Meta: Enforce newlines around namespaces
...
This has come up several times during code review, so let's just enforce
it using a new clang-format 20 option.
2025-05-14 02:01:59 -06:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
AnotherTest
9d349ac646
LibGfx: Add a generic Matrix variant
2020-07-25 02:13:43 +02:00
AnotherTest
2d96437bbb
LibGfx: Add Matrix4x4::elements() getters
2020-07-25 02:13:43 +02:00
Stephan Unverwerth
2dcc38d7bf
LibGfx: Add Vector3 and Matrix4x4 classes
...
This adds two templated 3D math classes. They have already been typedf'd
as FloatVector3, DoubleVector3, FloatMatrix4x4 and DoubleMatrix4x4
2020-04-18 12:28:54 +02:00