Commit Graph

21 Commits

Author SHA1 Message Date
James Chen be8fefa217 [v3.8.6] Fix toString for math types (#18060) 2024-12-24 09:28:40 +08:00
minggo 4009668e5d fix color multiply error (#17069)
* fix color multiply error
2024-05-31 10:05:58 +08:00
minggo f993d5e763 use Uint8ClampedArray to save memory (#17047)
* use Uint8ClampedArray to save memory
2024-05-28 14:46:22 +08:00
minggo bc6c2d4d6a Color val delete (#17021)
* remove Color._val, use r, g, b, a instead
2024-05-24 10:18:11 +08:00
James Chen 4d752400cd Fix divide zero issue in mat4.toSRT which causes node._lrot with NaN values. (#16935) 2024-04-29 11:24:23 +08:00
minggo cde48d1750 add Vec2.toVec3() and Vec3.toVec2() (#16906)
* add Vec2.toVec3() and Vec3.toVec2()
2024-04-17 14:00:59 +08:00
Leslie Leigh (李的序) da9c103ad3 Add Vec3.signedAngle (#16013)
* Signed angle

* Update cocos/core/math/vec3.ts

---------

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2023-12-19 11:46:29 +08:00
Leslie Leigh (李的序) 42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +08:00
Leslie Leigh (李的序) f87d196f8d Add Vec3.generateOrthogonal (#15705) 2023-07-14 10:33:16 +08:00
Santy-Wang d3a9b5a8b8 gradient misc optimization and add some helpful function (#15032)
* gradient misc optimization and add some helpful function

* keep old version and add new interface

* missing .

* mark as engineInternal
2023-05-24 13:59:29 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
李吉林 9538714d1b add moveTowards & rotateTowards (#14543) 2023-03-13 10:00:39 +08:00
Yiwen 633f738b07 Math tune (#14419)
* fix math lib & add unit test
2023-03-02 14:34:53 +08:00
jk20012001 28e216f3d1 treat color.ToVec4 FromVec4 as linear color (#14433) 2023-03-02 11:05:13 +08:00
李吉林 04e9f5e593 fix ts math library (#14385)
* fix ts math library
2023-02-27 16:59:08 +08:00
pandamicro 89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
李吉林 bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +08:00
minggo b81585d53b improve readability (#13818)
* improve readability
2022-12-15 09:42:27 +08:00
AFeiYA 1c2a1ba38a Add srgb transform. (#12873) 2022-09-28 14:15:22 +08:00
alpha f153b5cc1b fix Color.fromHex Bug (#9867) 2021-12-28 11:52:01 +08:00
jiaxin.lai 9ccf2aa92b add vec2 cross override and unit test (#9250)
* vec2 cross override

* add unit test

* docs
2021-08-25 18:43:55 +08:00