vectorclass / version2

Vector class library, latest version
Apache License 2.0
1.3k stars 148 forks source link

More default constructors #49

Closed rtlprmft closed 3 years ago

rtlprmft commented 3 years ago

I suggest to slightly change the default constructors, e.g. Vec4d(double a, double b, double c, double d=0) and Vec4d(Vec2d v, Vec2d w=Vec2d(0))

This allows an easier use for calculations in 3D and projections in 2D without always having to write an additional irrelevant argument.

AgnerF commented 3 years ago

You can use vector3d.h