Hacker News new | past | comments | ask | show | jobs | submit login

* is a better choice if you need something arithmetic-like, for instance

    vector3 a, b;
    float f = a *dot* b;
    vector3 c = a *cross* c;



Don't you need to overload two different operators to implement these named operators though?


No, they could equally well be two different overloads of a single operator.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: