/** * Used with serialization. Not to be called manually. * * @param in * ObjectInput * @throws IOException * @throws ClassNotFoundException */ @Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { setA((Vector3) in.readObject()); setB((Vector3) in.readObject()); setC((Vector3) in.readObject()); setIndex(in.readInt()); }
/** * Used with serialization. Not to be called manually. * * @param in * ObjectInput * @throws IOException * @throws ClassNotFoundException */ @Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { setA((Vector3) in.readObject()); setB((Vector3) in.readObject()); setC((Vector3) in.readObject()); setIndex(in.readInt()); }
tri1.setB(Vector3.UNIT_X); tri1.setC(Vector3.UNIT_Z); tri1.setIndex(1); assertEquals(Vector3.NEG_ONE, tri1.getA()); assertEquals(Vector3.UNIT_X, tri1.getB());