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

Vec2 and Vec3 child classes #15

Open
LucaCiucci opened this issue Feb 7, 2022 · 1 comment
Open

Vec2 and Vec3 child classes #15

LucaCiucci opened this issue Feb 7, 2022 · 1 comment

Comments

@LucaCiucci
Copy link
Contributor

LucaCiucci commented Feb 7, 2022

I was wondering if it was a good idea to add some specialized sub classes to provide more strict requirements, something like:

class Vec2 extends Vec {
    constructor(x : number = 0, y : number = 0) {
        super(x, y);
    }
    // ...
}

The library should continue to work without any major modification.

@learosema
Copy link
Owner

Good point.

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

No branches or pull requests

2 participants