Ver código fonte

fix links quaternion.adoc

mitm001 5 anos atrás
pai
commit
d71956c334
1 arquivos alterados com 6 adições e 10 exclusões
  1. 6 10
      docs/modules/ROOT/pages/jme3/quaternion.adoc

+ 6 - 10
docs/modules/ROOT/pages/jme3/quaternion.adoc

@@ -1,10 +1,6 @@
 = Quaternion
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
-:relfileprefix: ../
-:imagesdir: ..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
+:revnumber: 2.0
+:revdate: 2020/07/15
 
 
 
@@ -19,7 +15,7 @@ Quaternions define a subset of a hypercomplex number system. Quaternions are def
 
 Additional benefits of the Quaternion is reducing the chance of link:http://en.wikipedia.org/wiki/Gimbal_lock[Gimbal Lock] and allowing for easily interpolation between two rotations (spherical linear interpolation or slerp).
 
-While Quaternions are quite difficult to fully understand, there are an exceeding number of convenience methods to allow you to use them without having to understand the math behind it. Basically, these methods involve nothing more than setting the Quaternion's x,y,z,w values using other means of representing rotations. The Quaternion is then contained in <<jme3/advanced/spatial#,Spatial>> as its local rotation component.
+While Quaternions are quite difficult to fully understand, there are an exceeding number of convenience methods to allow you to use them without having to understand the math behind it. Basically, these methods involve nothing more than setting the Quaternion's x,y,z,w values using other means of representing rotations. The Quaternion is then contained in xref:jme3/advanced/spatial.adoc[Spatial] as its local rotation component.
 
 Quaternion *q* has the form
 
@@ -82,7 +78,7 @@ s.getLocalRotation().fromAngles(angles);
 
 === Three Axes
 
-If you have three axes that define your rotation, where the axes define the left axis, up axis and directional axis respectively) you can make use of `fromAxes` to generate the Quaternion. It should be noted that this will generate a new <<jme3/matrix#,Matrix>> object that is then garbage collected, thus, this method should not be used if it will be called many times. Again, `toAxes` will populate a xref:tutorials:intermediate/terminology.adoc#vectors[Vector3f] array.
+If you have three axes that define your rotation, where the axes define the left axis, up axis and directional axis respectively) you can make use of `fromAxes` to generate the Quaternion. It should be noted that this will generate a new xref:jme3/matrix.adoc[Matrix] object that is then garbage collected, thus, this method should not be used if it will be called many times. Again, `toAxes` will populate a xref:tutorials:intermediate/terminology.adoc#vectors[Vector3f] array.
 
 
 ==== Example - Rotate a Spatial Using fromAxes
@@ -103,7 +99,7 @@ s.getLocalRotation().fromAxes(axes);
 
 === Rotation Matrix
 
-Commonly you might find yourself with a <<jme3/matrix#,Matrix>> defining a xref:tutorials:rotate.adoc#toolbar[rotation]. In fact, it's very common to contain a rotation in a Matrix, create a Quaternion, rotate the Quaternion, and then get the Matrix back. Quaternion contains a `fromRotationMatrix` method that will create the appropriate Quaternion based on the given Matrix. The `toRotationMatrix` will populate a given Matrix.
+Commonly you might find yourself with a xref:jme3/matrix.adoc[Matrix] defining a xref:tutorials:rotate.adoc#toolbar[rotation]. In fact, it's very common to contain a rotation in a Matrix, create a Quaternion, rotate the Quaternion, and then get the Matrix back. Quaternion contains a `fromRotationMatrix` method that will create the appropriate Quaternion based on the given Matrix. The `toRotationMatrix` will populate a given Matrix.
 
 
 ==== Example - Rotate a Spatial Using a Rotation Matrix
@@ -143,4 +139,4 @@ Quaternion q3 = q1.slerp(q2, 0.5f);
 ----
 
 ---
-*  See <<jme3/rotate#,3D-Rotations>> for troubleshooting and extra information on using quaternions.
+*  See xref:tutorials:intermediate/rotate.adoc[3D-Rotations] for troubleshooting and extra information on using quaternions.