Can anyone please tell me if this can be done, and if yes, how?
I have a List<float> FocalLengthList that I have populated with some values. Then THIS List is stored in a List<List<float>> MainFocalLenghtList.
However, in my application I need to use the values fromMainFocalLenghtList to update an objects 3D position. So I need to cast fromMainFocalLenghtList [0] to int.
Can this be done and how?
Here is a small section of my code to explain.
Adding values to FocalLengthList then adding that list to List<List<float>> MainFocalLenghtList
float newFocalLength = focalLength * pixelSize; 
FocalLengthList.Add(newFocalLength); 
MainFocallengthList.Add(FocalLengthList); 
FocalLengthList = new List<float>(); 
Then how I intend to use the values (not working)
int zComponent = MainFocallengthList[0];
 
     
     
     
     
     
    