anyone know how to access an element of the point3f vector
e.g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
int main()
{
vector<Point3f> a;
a.push_back(Point3f(0,0,0);
a.push_back(Point3f(0,0,1);
//print first x,y,z element
cout<<a[0]<<endl;
//problem in printing the x, y and z value of each one separately
for(int i=0;i<a.size();i++)
{
//print x value of ith point3f element
cout<<a.at<float>(i,0,0);
//same for y and z instead use (i,0,1) and (i,1,0);
}
but it doesn' work firstly because it says can't use typename i.e. <float>