-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#285) There's currently no way to combine multiple dynamic scalar expressions into a scalar. This causes many problems, including not being able to convert an angle to a 2D vector, as demonstrated in the new doctests. This commit adds a new binary operator, `vec2`, and a new ternary operator, `vec3`, for this. Both operators work on all scalar types.
- Loading branch information
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
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