package electrosphere.script.access;

import org.graalvm.polyglot.HostAccess.Export;

/**
 * A script's view of a 3d vector
 */
public class Vector {
    
    @Export
    public double x;

    @Export
    public double y;
    
    @Export
    public double z;

    /**
     * Creates a vector
     * @param x the x coordinate
     * @param y the y coordinate
     * @param z the z coordinate
     */
    public Vector(double x, double y, double z){
        this.x = x;
        this.y = y;
        this.z = z;
    }

}
