Example usage for javax.media.j3d Locale Locale

List of usage examples for javax.media.j3d Locale Locale

Introduction

In this page you can find the example usage for javax.media.j3d Locale Locale.

Prototype

public Locale(VirtualUniverse universe, HiResCoord hiRes) 

Source Link

Document

Constructs and initializes a new high resolution Locale object at the location specified by the HiResCoord argument.

Usage

From source file:HiResCoordTest.java

protected Locale createLocale(VirtualUniverse u) {
    int[] xPos = { 0, 0, 0, 0, 0, 0, 0, 0 };
    int[] yPos = { 0, 0, 0, 0, 0, 0, 0, 0 };
    int[] zPos = { 0, 0, 0, 0, 0, 0, 0, 0 };

    HiResCoord hiResCoord = new HiResCoord(xPos, yPos, zPos);
    return new Locale(u, hiResCoord);
}

From source file:HiResCoordTest.java

protected Locale createLocaleEarth(VirtualUniverse u) {
    int[] xPos = { 0, 0, 0, 0, 0, 0, 0, 0 };
    int[] yPos = { 0, 0, 0, 0, 0, 0, 0, 0 };
    int[] zPos = { 0, 0, 0, 1, 0, 0, 0, 0 };

    HiResCoord hiResCoord = new HiResCoord(xPos, yPos, zPos);
    return new Locale(u, hiResCoord);
}

From source file:HiResCoordTest.java

protected Locale createLocaleHouse(VirtualUniverse u) {
    int[] xPos = { 0, 0, 0, 0, 0, 0, 0, 0 };
    int[] yPos = { 0, 0, 0, 0, 100, 0, 0, 0 };
    int[] zPos = { 0, 0, 0, 1, 100, 0, 0, 0 };

    HiResCoord hiResCoord = new HiResCoord(xPos, yPos, zPos);
    return new Locale(u, hiResCoord);
}