Package se.llbit.math

Examples of se.llbit.math.UVTriangle


        new Vector4d(7/16., 9/16., 0/16., 2/16.));

    uvtriangles = new UVTriangle[4];

    // facing south
    uvtriangles[0] = new UVTriangle(
        new Vector3d(8/16., 3/16., 9/16.),
        new Vector3d(24/16., 3/16., 9/16.),
        new Vector3d((4-12/10.)/16., 1, 9/16.),
        new Vector2d(0, 0),
        new Vector2d(1, 0),
        new Vector2d(0., 13/16.));
    uvtriangles[1] = new UVTriangle(
        new Vector3d((20-12/10.)/16., 1, 9/16.),
        new Vector3d((4-12/10.)/16., 1, 9/16.),
        new Vector3d(24/16., 3/16., 9/16.),
        new Vector2d(1, 13/16.),
        new Vector2d(0, 13/16.),
        new Vector2d(1, 0));

    // facing north
    uvtriangles[2] = new UVTriangle(
        new Vector3d(24/16., 3/16., 7/16.),
        new Vector3d(8/16., 3/16., 7/16.),
        new Vector3d((4-12/10.)/16., 1, 7/16.),
        new Vector2d(1, 0),
        new Vector2d(0, 0),
        new Vector2d(0, 13/16.));
    uvtriangles[3] = new UVTriangle(
        new Vector3d((4-12/10.)/16., 1, 7/16.),
        new Vector3d((20-12/10.)/16., 1, 7/16.),
        new Vector3d(24/16., 3/16., 7/16.),
        new Vector2d(0, 13/16.),
        new Vector2d(1, 13/16.),
View Full Code Here

TOP

Related Classes of se.llbit.math.UVTriangle

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.