in reply to Vector manipulation
You are creating one vector from all 6 points on each line, when you should be creating two vectors for each line:push @data, V(split) while <$in_fh>;
Now your @data can be looped through and you can perform the calculations on the vectors.while (<$in_fh>) { my @points = split; push(@data, V( @points[0,1,2] ), V( @points[3,4,5] ) ); }
|
|---|