Package se.llbit.math

Examples of se.llbit.math.Vector2d


    // 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.),
        new Vector2d(1, 0));

    light = new Vector3d(.1, 1, -.1);
    light.normalize();
  }
View Full Code Here

TOP

Related Classes of se.llbit.math.Vector2d

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.