Skip to content
New issue

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

Simplify matrix declarations #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Simplify matrix declarations #9

wants to merge 2 commits into from

Conversation

dhritzkiv
Copy link
Member

if diagonal elements are all the same, and the rest are zeros

e.g.

mat3 fullForm = mat3(
	1.0, 0.0, 0.0,
	0.0, 1.0, 0.0,
	0.0, 0.0, 1.0
);

mat3 shortForm = mat3(1.0);

fullForm == shortForm;

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 99.275% when pulling 07f3ce1 on minify-mats into a284825 on master.

@coveralls
Copy link

coveralls commented Jun 11, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 05291cf on minify-mats into a284825 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants