From e4641e304fbc64a5d185a39c6ca6357cc678e013 Mon Sep 17 00:00:00 2001 From: Sven Gothel <sgothel@jausoft.com> Date: Sat, 15 Mar 2014 05:47:01 +0100 Subject: Bug 801: Outline/OutlineShape tranform and sort fixes ; Quaternion: Reduce muls in rotateVector Quaternion: - rotateVector(..): Reduce multiplication count by 17 Graph: - Outline - add: transform - fix compareTo .. use EPSILON - OutlineShape - add transform - fix compareTo .. use EPSILON - use Comparator<Outline> in sortOutlines to avoid reversal of list - Extract OutlineShapeXForm, pairing { OutlineShape, AffineTransform } --- .../classes/com/jogamp/graph/curve/OutlineShapeXForm.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/jogl/classes/com/jogamp/graph/curve/OutlineShapeXForm.java (limited to 'src/jogl/classes/com/jogamp/graph/curve/OutlineShapeXForm.java') diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShapeXForm.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShapeXForm.java new file mode 100644 index 000000000..b1c99f5ed --- /dev/null +++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShapeXForm.java @@ -0,0 +1,13 @@ +package com.jogamp.graph.curve; + +import jogamp.graph.geom.plane.AffineTransform; + +public class OutlineShapeXForm { + public final OutlineShape shape; + public final AffineTransform t; + + public OutlineShapeXForm(final OutlineShape shape, final AffineTransform t) { + this.shape = shape; + this.t = t; + } +} \ No newline at end of file -- cgit v1.2.3