We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(x, y, z, w)
Dyon uses vectors in 4D to describe points in 2D, 3D and 4D.
(1, 2, 3, 4) (1, 2, 3) // `w` is 0 (1, 2) // `z` is 0, `w` is 0
At least two arguments must be specified. Arguments must be numbers.
Operators for vec4:
+
*
/
·
*.
⨯
x
w
|v|
The precision is f32. Thumb rule: Whenever you do calculations with vectors, expect f32 precision unless the algorithms are carefully analyzed.
f32
This is designed for:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dyon uses vectors in 4D to describe points in 2D, 3D and 4D.
At least two arguments must be specified. Arguments must be numbers.
Operators for vec4:
+
) and multiplication (*
) is per-component for two vectors*
) and scalar division (/
) allowed on both sides and is per-component·
/*.
)⨯
/x
) ignoresw
component|v|
The precision is
f32
. Thumb rule: Whenever you do calculations with vectors, expectf32
precision unless the algorithms are carefully analyzed.This is designed for:
The text was updated successfully, but these errors were encountered: