All Downloads are FREE. Search and download functionalities are using the official Maven repository.

glm.vec._3.us.Vec3us Maven / Gradle / Ivy

Go to download

Java OpenGL Mathematics is a library for graphics software based on the OpenGL Shading Language specifications

There is a newer version: 1.0.1
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package glm.vec._3.us;

import joou.UShort;

/**
 *
 * @author GBarbieri
 */
public class Vec3us extends FuncRelational {

    public Vec3us() {
        x.value = 0;
        y.value = 0;
        z.value = 0;
    }

    public Vec3us(int x, int y, int z) {
        this((short) x, (short) y, (short) z);
    }

    public Vec3us(short x, short y, short z) {
        this.x.value = x;
        this.y.value = y;
        this.z.value = z;
    }

    public Vec3us set(UShort x, UShort y, UShort z) {
        this.x = x;
        this.y = y;
        this.z = z;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy