Package se.llbit.math

Examples of se.llbit.math.Vector4d


        new AABB(0, 1, 0.5, 1, 0, 0.5),
        new AABB(0, 0.5, 0.5, 1, 0.5, 1),
    };
    quads = new Quad[] {
      new Quad(new Vector3d(14/16., 16/16., 2/16.), new Vector3d(2/16., 16/16., 2/16.),
          new Vector3d(14/16., 16/16., 14/16.), new Vector4d(2/16., 14/16., 2/16., 14/16.)),
    };
  }
View Full Code Here


    // west
    quads[0] = new Quad(new Vector3d(15/16., 3/16., 0),
        new Vector3d(15/16., 3/16., 1),
        new Vector3d((11-12/10.)/16., 1, 0),
        new Vector4d(0, 1, 0, 13/16.));

    // east
    quads[1] = new Quad(new Vector3d((13-12/10.)/16., 1, 0),
        new Vector3d((13-12/10.)/16., 1, 1),
        new Vector3d(17/16., 3/16., 0),
        new Vector4d(1, 0, 13/16., 0));

    // top
    quads[2] = new Quad(
        new Vector3d(13/16., 13/16., 9/16.),
        new Vector3d(13/16., 13/16., 7/16.),
        new Vector3d(11/16., 13/16., 9/16.),
        new Vector4d(9/16., 7/16., 10/16., 8/16.));

    // bottom
    quads[3] = new Quad(
        new Vector3d(15/16., 3/16., 7/16.),
        new Vector3d(17/16., 3/16., 7/16.),
        new Vector3d(15/16., 3/16., 9/16.),
        new Vector4d(7/16., 9/16., 0/16., 2/16.));

    uvtriangles = new UVTriangle[4];

    // facing south
    uvtriangles[0] = new UVTriangle(
View Full Code Here

TOP

Related Classes of se.llbit.math.Vector4d

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.