Guest User

Untitled

a guest
Jul 3rd, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package de.finalspace.engine.geometry;
  2.  
  3. import de.finalspace.engine.utils.Vector3f;
  4. import de.finalspace.engine.utils.Vector4f;
  5.  
  6. public class Vertex {
  7.     public Vector4f pos = new Vector4f();
  8.     public Vector3f texcoord = new Vector3f();
  9.     public Vector3f normal = new Vector3f();
  10.     public Vector4f color = new Vector4f();
  11.  
  12.     @Override
  13.     public boolean equals(Object obj) {
  14.         if (obj instanceof Vertex) {
  15.             Vertex e = (Vertex) obj;
  16.             return e.pos.equals(pos) && e.normal.equals(normal)
  17.                     && e.texcoord.equals(texcoord) && e.color.equals(color);
  18.         }
  19.         return false;
  20.     }
  21.    
  22.     @Override
  23.     public String toString() {
  24.         return "[" + pos.toString() + "] " + "[" + texcoord.toString() + "] " + "[" + normal.toString() + "] " + "[" + color.toString() + "]";
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment