Commit Graph

26 Commits

Author SHA1 Message Date
Wojtek Figat
9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
528c51cf6a Merge branch 'patch-2' of https://github.com/rkrahn/FlaxEngine into rkrahn-patch-2 2024-02-19 22:17:06 +01:00
rkrahn
8aaf7417cc Fix NextUnitCircleVector2 degree to radian
Fixes the use of degrees when radians should be used.
2024-02-19 13:04:26 -08:00
rkrahn
4ad5eb26d6 Fix NextUnitVector2 degree to radian
Fixes the use of degrees when radians should be used.
2024-02-19 13:00:38 -08:00
rkrahn
9a5db2ff8e Add NextUnitCircleVector2 extension method
Adds the NextUnitCircleVector2 extension method which produces a Vector2 on a unit circle with a magnitude equal to the radius.
2024-02-15 14:51:55 -08:00
rkrahn
0b2fcff4ea Fix NextUnitVector2
Fixed NextUnitVector2 method not producing a vector within a unit circle.
2024-02-15 14:34:50 -08:00
nothingTVatYT
6c32e4a842 force DeepClone() to use runtime class 2023-11-18 05:34:34 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojtek Figat
9ff0ad4734 Fix order of Large Worlds Real using 2022-07-18 20:20:12 +02:00
Wojtek Figat
a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
Wojtek Figat
af34bafc5a Improve LocalizedStringTable editor 2021-04-22 13:28:52 +02:00
stefnotch
a58645da0f Slightly improve the random byte generation code 2021-04-12 10:46:00 +02:00
Wojtek Figat
4aabb81c1f Use constructors for random generation methods 2021-02-18 22:43:46 +01:00
W2.Wizard
654285e57f Separated NextVector and NextUnitVector, refactoring
While I was at it I made some slight refactoring making it much more readable and establish consistency
2021-02-17 00:30:24 +01:00
W2.Wizard
042694f45e Added random enum 2021-02-09 17:11:44 +01:00
W2.Wizard
00c40e279c Update Extensions.cs 2021-01-14 13:56:10 +01:00
W2.Wizard
8e44e6b23c Applied additional review changes
Moved out the random Color created via HSV to its own function as @stefnotch suggested.

Added + 1 to the max value in NextByte to include max as a possible value.
2021-01-14 12:28:51 +01:00
W2.Wizard
437018e614 Applied review changes
Applied almost all review changes.
2021-01-14 11:50:03 +01:00
W2.Wizard
75c3388c00 Corrected comments 2021-01-14 01:12:13 +01:00
W2.Wizard
31dd5b852e Update Extensions.cs 2021-01-13 22:04:16 +01:00
W2.Wizard
6649f0d4c2 Removed unnecessary overload
Same can be achieved by  specifiying max.
2021-01-13 21:58:16 +01:00
W2.Wizard
604c583c36 Moved all methods to Extension.cs
Moved the methods for RandomUtils.cs to Extension.cs instead.
2021-01-13 21:16:17 +01:00
Jean-Baptiste Perrier
03eb39afe6 Bumping all copyright headers to 2021. 2021-01-02 14:28:49 +01:00
Wojtek Figat
6fb9eee74c You're breathtaking! 2020-12-07 23:40:54 +01:00