出于好奇,我以3种方式实现了vector3实用程序:数组(使用typedef)、类和结构这是数组实现:typedeffloatnewVector3[3];namespacevec3{voidadd(constnewVector3&first,constnewVector3&second,newVector3&out_newVector3);voidsubtract(constnewVector3&first,constnewVector3&second,newVector3&out_newVector3);voiddot(constnewVector3&first,constnewVe