Beispiel #1
0
        public static GLTK.Matrix Short3CoordToRotationMatrix(Chunks.Short3Coord xiCoord)
        {
            GLTK.Matrix lRotation = GLTK.Matrix.Rotation(-xiCoord.Z / 1024.0 * Math.PI / 2.0, GLTK.Vector.ZAxis);
            lRotation *= GLTK.Matrix.Rotation(-xiCoord.Y / 1024.0 * Math.PI / 2.0, GLTK.Vector.YAxis);
            lRotation *= GLTK.Matrix.Rotation(-xiCoord.X / 1024.0 * Math.PI / 2.0, GLTK.Vector.XAxis);

            return(lRotation);
        }
Beispiel #2
0
 public static GLTK.Point Short3CoordToPoint(Chunks.Short3Coord xiCoord)
 {
     return(new GLTK.Point(xiCoord.X, xiCoord.Y, xiCoord.Z));
 }