Difference between revisions of "Canvas 3D - Rotate Tags"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
= Cube Tag Reference =
+
= Rotate Tag Reference =
  
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
 
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]
Line 5: Line 5:
 
== Introduction ==
 
== Introduction ==
  
Intro.
+
The Rotate Tag is a way of rotating multiple objects around a single point by a certain amount of degrees. Any Tags that are written within it at rotated by an amount specified by the Rotate Tag. The Rotate Tag generates a rotation matrix internally and applies it to all the encompassed objects.
  
 
== Tag Attributes ==
 
== Tag Attributes ==
  
* degrees
+
* anchor
 +
** '''Usage:''' <rotate anchor="3.0, 1.0, 2.0"> ... </rotate>.
 +
** The ''anchor'' attribute specifies the location point that the objects are going to be rotated around.
 +
** This attribute is optional and defaults to the origin point {0.0, 0.0, 0.0}.
 +
* factor
 +
** '''Usage:''' <rotate factor="75.0"> ... </scale>.
 +
** The ''factor'' attribute specifies the rotational mount (in degrees) that the object is going to be rotated.
 +
** This attribute is mandatory.
  
 
== Syntax ==
 
== Syntax ==
  
 
<pre>
 
<pre>
Syntax Goes Here
+
<canvas>
 
+
<rotate anchor="3.0, 1.0, 2.0" factor="45.0">
 +
  <cube name="mycube" position="1.0, 2.0, 3.0" />
 +
  <sphere name="mysphere" position="30.0, 10.0, 5.0" />
 +
</rotate>
 +
</canvas>
 
</pre>
 
</pre>
  
 
== References ==
 
== References ==
  
* Site.
+
* None.

Revision as of 18:28, 20 October 2006

Rotate Tag Reference

Back To XML 3D Main Page

Introduction

The Rotate Tag is a way of rotating multiple objects around a single point by a certain amount of degrees. Any Tags that are written within it at rotated by an amount specified by the Rotate Tag. The Rotate Tag generates a rotation matrix internally and applies it to all the encompassed objects.

Tag Attributes

  • anchor
    • Usage: <rotate anchor="3.0, 1.0, 2.0"> ... </rotate>.
    • The anchor attribute specifies the location point that the objects are going to be rotated around.
    • This attribute is optional and defaults to the origin point {0.0, 0.0, 0.0}.
  • factor
    • Usage: <rotate factor="75.0"> ... </scale>.
    • The factor attribute specifies the rotational mount (in degrees) that the object is going to be rotated.
    • This attribute is mandatory.

Syntax

<canvas>
 <rotate anchor="3.0, 1.0, 2.0" factor="45.0">
  <cube name="mycube" position="1.0, 2.0, 3.0" />
  <sphere name="mysphere" position="30.0, 10.0, 5.0" />
 </rotate>
</canvas>

References

  • None.