Roi Atalla avatar Roi Atalla committed 8f1856d

Setting up for Chapter 9.

Comments (0)

Files changed (4)

src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter8/example4/Example8_4.java

 				dot = clamp(dot, -1, 1);
 				float theta = (float)Math.acos(dot) * alpha;
 				
-				Quaternion q2 = q1.add(new Quaternion(q0).mult(-dot)).normalize();
+				Quaternion q2 = q1.sub(new Quaternion(q0).mult(dot)).normalize();
 				
 				return q0.mult((float)Math.cos(theta)).add(q2.mult((float)Math.sin(theta)));
 			}

src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter9/example1/Example9_1.java

+package com.ra4king.opengl.arcsynthesis.gl33.chapter9.example1;
+
+public class Example9_1 {
+	
+}

src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter9/example2/Example9_2.java

+package com.ra4king.opengl.arcsynthesis.gl33.chapter9.example2;
+
+public class Example9_2 {
+	
+}

src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter9/example3/Example9_3.java

+package com.ra4king.opengl.arcsynthesis.gl33.chapter9.example3;
+
+public class Example9_3 {
+	
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.