Closed jzy3d closed 2 years ago
Made with
{ Arrow arrow = new Arrow(); arrow.setWireframeDisplayed(false); arrow.setData(createVector3d(Coord3d.ORIGIN, Coord3d.IDENTITY, 0.2f), 0.02f, 10, 0, Color.RED); arrow.setReflectLight(true); chart.getScene().getGraph().add(arrow); chart.addLightOnCamera(); } private static Vector3d createVector3d(Coord3d pos, Coord3d dir, float length) { Coord3d dirN = dir.getNormalizedTo(length / 2f); Coord3d end = pos.add(dirN); dirN = dirN.negative(); Coord3d start = pos.add(dirN); return new Vector3d(start, end); }
Made with