<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive'
version='3.3'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-3.3.xsd
'
>
<head>
</head>
<!--
<!--
Index for DEF nodes:
AxisLinesShape,
CenterRotationYaxis45Degrees,
ComposedRotation,
CubeWithLabeledSides,
InnerRotationZaxis-30degrees,
LeftSide,
OuterRotationXaxis135degrees,
RightSide,
TextAppearance
Index for Viewpoint nodes:
Viewpoint_1,
Viewpoint_2,
Viewpoint_3
-->
<Scene>
<WorldInfo title='RotationCalculatorExample.x3d'/>
<Background skyColor='0.8 0.8 0.9'/>
<NavigationInfo/>
<Viewpoint description='Rotation Calculator Example' position='0 0 12'/>
<Viewpoint description='Left side direct view' position='-3 0 12'/>
<Viewpoint description='Right side direct view' position='3 0 12'/>
<Transform DEF='LeftSide' translation='-4 0 0'>
<!-- Individual nested rotations follow -->
<Transform DEF='OuterRotationXaxis135degrees' rotation='1 0 0 2.356194'>
</Transform>
<Transform translation='0 3 0'>
<Shape>
<Text string='"Multiple single-axis" "Transform rotations"'>
<FontStyle family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='0.5' style='BOLD'/>
</Text>
<Appearance DEF='TextAppearance'>
<Material diffuseColor='0.1 0.2 0.9'/>
</Appearance>
</Shape>
</Transform>
<Transform translation='0 -3 0'>
<Shape>
<Text string='"using multiple" "nested Transform nodes"'>
<FontStyle family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='0.5' style='BOLD'/>
</Text>
<Appearance USE='
TextAppearance'/>
</Shape>
</Transform>
</Transform>
<Transform DEF='RightSide' translation='4 0 0'>
<!-- Composed equivalent rotation follows, X3D-Edit can reload rotation array values from embedded comment -->
<Transform DEF='ComposedRotation' rotation='0.87262 0.40202 0.27735 2.24592'>
<!-- RotationCalculator composed rotation: 1.0 0.0 0.0 2.35619, 0.0 1.0 0.0 0.785398, 0.0 0.0 1.0 -0.523599 -->
<Inline USE='
CubeWithLabeledSides'/>
<Shape USE='
AxisLinesShape'/>
</Transform>
<Transform translation='0 3 0'>
<Shape>
<Text string='"Single composed" "Transform rotation"'>
<FontStyle family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='0.5' style='BOLD'/>
</Text>
<Appearance USE='
TextAppearance'/>
</Shape>
</Transform>
<Transform translation='0 -3 0'>
<Shape>
<Text string='"computed with X3D-Edit" "Rotation Calculator"'>
<FontStyle family='"SANS"' justify='"MIDDLE" "MIDDLE"' size='0.5' style='BOLD'/>
</Text>
<Appearance USE='
TextAppearance'/>
</Shape>
</Transform>
</Transform>
</Scene>
</X3D>
<!--
<!--
Index for DEF nodes:
AxisLinesShape,
CenterRotationYaxis45Degrees,
ComposedRotation,
CubeWithLabeledSides,
InnerRotationZaxis-30degrees,
LeftSide,
OuterRotationXaxis135degrees,
RightSide,
TextAppearance
Index for Viewpoint nodes:
Viewpoint_1,
Viewpoint_2,
Viewpoint_3
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/RotationCalculatorExampleIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/RotationCalculatorExample.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->