Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.finalspace.engine.geometry;
- import de.finalspace.engine.utils.Vector3f;
- import de.finalspace.engine.utils.Vector4f;
- public class Vertex {
- public Vector4f pos = new Vector4f();
- public Vector3f texcoord = new Vector3f();
- public Vector3f normal = new Vector3f();
- public Vector4f color = new Vector4f();
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof Vertex) {
- Vertex e = (Vertex) obj;
- return e.pos.equals(pos) && e.normal.equals(normal)
- && e.texcoord.equals(texcoord) && e.color.equals(color);
- }
- return false;
- }
- @Override
- public String toString() {
- return "[" + pos.toString() + "] " + "[" + texcoord.toString() + "] " + "[" + normal.toString() + "] " + "[" + color.toString() + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment