package com.lasarobotics.library.util;

/**
 * 3D Vector
 */
public class Vector3<T> {
    public final T x;
    public final T y;
    public final T z;
    
    public static class Builder<T> {
        private final T x, y, z;
        
        public Builder x(T n) {
            this.x = n;
            return this;
        }
        
        public Builder y(T n) {
            this.y = n;
            return this;
        }
        
        public Builder z(T n) {
            this.z = n;
            return this;
        }
        
        public Vector3<T> build() { 
            return new Vector3<T>(x, y, x);
        }
    }

    public Vector3(T x, T y, T z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    @Override
    public String toString() {
        return "(" + x + ", " + y + ", " + z + ")";
    }
}

@@ -252,16 +252,19 @@
  Builder
+%3CT%3E
  x(T n) 
@@ -257,32 +257,32 @@
 der%3CT%3E x(T n) %7B%0A
-
             this
@@ -355,16 +355,19 @@
  Builder
+%3CT%3E
  y(T n) 
@@ -428,32 +428,32 @@
      %7D%0A        %0A
-
         public B
@@ -458,16 +458,19 @@
  Builder
+%3CT%3E
  z(T n) 

Update Vector3.java