Something went wrong. Try again.
google balls
Something went wrong. Try again.
719 B · 42 lines
Java
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243package com.weenie.googleballs;
public class Vector { public float x; public float y; public float z;
public Vector(float x, float y) { this.x = x; this.y = y; this.z = 0; }
public Vector(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }
public void addX(float x) { this.x += x; }
public void addY(float y) { this.y += y; }
public void addZ(float z) { this.z += z; }
public void set(float x, float y) { this.x = x; this.y = y; }
public void set(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }}