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
When learning the .trans Context method, I think it would be easier for new people if
.trans
Context
let square = rectangle::square(0.0, 0.0, 50.0);
Used a const (like SQUARE_SIZE) to represent for 50.0, and then later
const
SQUARE_SIZE
50.0
.trans(-25.0, -25.0);
Used something like 1.0 * SQUARE_SIZE / 2.0 so it's clear there is a relationship between those two numbers.
1.0 * SQUARE_SIZE / 2.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When learning the
.trans
Context
method, I think it would be easier for new people ifUsed a
const
(likeSQUARE_SIZE
) to represent for50.0
, and then laterUsed something like
1.0 * SQUARE_SIZE / 2.0
so it's clear there is a relationship between those two numbers.The text was updated successfully, but these errors were encountered: