forked from godot-rust/gdext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
124: Implement the matrix types r=Bromeon a=sayaks Implement the four matrix types godot has: `Basis`, `Transform2D`, `Transform3D`, `Projection`. `Transform2D` in godot consists of an array of 3 `Vector2`s, where the first two are the basis. This means godot has some methods named `Transform2D::basis_<something>()`. I decided to instead make a struct `Basis2D`. so now any method like the above would be called `trans.basis.<something>()` instead. `Projection` has a lot of intricate math for many of its functions so it is largely a wrapper around `InnerProjection`, except for some methods that were easy to reimplement. Depends on godot-rust#128 Co-authored-by: Lili Zoey <[email protected]>
- Loading branch information
Showing
14 changed files
with
2,771 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.