When are structs the answer?

前端 未结 12 946
广开言路
广开言路 2020-12-12 18:24

I\'m doing a raytracer hobby project, and originally I was using structs for my Vector and Ray objects, and I thought a raytracer was the perfect situation to use them: you

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 18:39

    I use structs basically for parameter objects, returning multiple pieces of information from a function, and... nothing else. Don't know whether it's "right" or "wrong," but that's what I do.

提交回复
热议问题