How to convert simplevector to Vector3f?

Started by jumong, September 03, 2010, 11:58:56 AM

Previous topic - Next topic

jumong

hi,
How to convert simplevector to Vector3f?
What different of simplevector and vector3f?
help

EgonOlsen


jumong


EgonOlsen

Well...i assume that you are talking about the javax.vecmath Vector3f then? In that case, the actual conversion is sv.x=v3f.x, sv.y=v3f.y and sv.z=v3f.z. However, coordinate systems of the actual vectors may differ (http://www.jpct.net/wiki/index.php/Coordinate_system). The most usual form is that the coordinate system of jPCT is rotated 90° around the x-axis compared to others. If that is the case, just negate y and z to convert between the two.