@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/RotationCalculatorExample.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'RotationCalculatorExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '30 December 2015' ;
  x3do:name 'created' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '30 August 2025' ;
  x3do:name 'modified' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Demonstrate composition of rotation values using X3D-Edit RotationCalculator, select and hold either side to compare direct straight-ahead views without parallax.' ;
  x3do:name 'description' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/tools/X3D-Edit/images/RotationCalculator.png' ;
  x3do:name 'drawing' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../HumanoidAnimation/RotationTests.x3d' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/RotationCalculatorExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "RotationCalculatorExample.x3d" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "30 December 2015" .
:meta dcterms:modified "30 August 2025" .
:meta dcterms:description "Demonstrate composition of rotation values using X3D-Edit RotationCalculator, select and hold either side to compare direct straight-ahead views without parallax." .
:meta dcterms:drawing "https://www.web3d.org/x3d/tools/X3D-Edit/images/RotationCalculator.png" .
:meta dcterms:reference "../HumanoidAnimation/RotationTests.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/RotationCalculatorExample.x3d" .
:meta dcterms:generator "X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_2, :NavigationInfo_2_3, :ViewCenter, :ViewLeft, :ViewRight, :LeftSide, :RightSide .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'RotationCalculatorExample.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.8 0.8 0.9 ) .
:NavigationInfo_2_3 a owl:NamedIndividual, x3do:NavigationInfo ;
  x3do:hasParent :Scene .
:ViewCenter a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ViewCenter' ;
  x3do:description 'Rotation Calculator Example' ;
  x3do:position ( 0 0 12 ) .
:ViewLeft a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ViewLeft' ;
  x3do:description 'Left side direct view' ;
  x3do:position ( -3 0 12 ) .
:ViewRight a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ViewRight' ;
  x3do:description 'Right side direct view' ;
  x3do:position ( 3 0 12 ) .
:LeftSide a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :OuterRotationXaxis135degrees, :Transform_2_7_2, :Transform_2_7_3, :TransparentBacking1, :TouchLeftCube ;
  x3do:hasROUTE :ROUTE_2_7_6 ;
  x3do:DEF 'LeftSide' ;
  x3do:translation ( -4 0 0 ) .
:OuterRotationXaxis135degrees a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LeftSide ;
  x3do:hasChildren :CenterRotationYaxis45Degrees ;
  x3do:DEF 'OuterRotationXaxis135degrees' ;
  x3do:rotation ( 1 0 0 2.356194 ) .
:CenterRotationYaxis45Degrees a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :OuterRotationXaxis135degrees ;
  x3do:hasChildren :InnerRotationZaxis-30degrees ;
  x3do:DEF 'CenterRotationYaxis45Degrees' ;
  x3do:rotation ( 0 1 0 0.785398 ) .
:InnerRotationZaxis-30degrees a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :CenterRotationYaxis45Degrees ;
  x3do:hasChildren :CubeWithLabeledSides1, :AxisLinesShape ;
  x3do:DEF 'InnerRotationZaxis-30degrees' ;
  x3do:rotation ( 0 0 1 -0.523599 ) .
:CubeWithLabeledSides1 a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :InnerRotationZaxis-30degrees ;
  x3do:hasMetadata :MetadataString_2_7_1_1_1_1_1 ;
  x3do:DEF 'CubeWithLabeledSides1' ;
  x3do:url '"../GeometricShapes/CubeWithLabeledSides.x3d" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d" "../GeometricShapes/CubeWithLabeledSides.wrl" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.wrl"' .
:MetadataString_2_7_1_1_1_1_1 a owl:NamedIndividual, x3do:MetadataString ;
  x3do:hasParent :CubeWithLabeledSides1 ;
  x3do:name 'profile' ;
  x3do:value '"Interchange"' .
:AxisLinesShape a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :InnerRotationZaxis-30degrees ;
  x3do:hasGeometry :IndexedLineSet_2_7_1_1_1_2_1 ;
  x3do:hasAppearance :Appearance_2_7_1_1_1_2_2 ;
  x3do:DEF 'AxisLinesShape' .
:IndexedLineSet_2_7_1_1_1_2_1 a owl:NamedIndividual, x3do:IndexedLineSet ;
  x3do:hasParent :AxisLinesShape ;
  x3do:hasCoord :Coordinate_2_7_1_1_1_2_1_1 ;
  x3do:hasColor :Color_2_7_1_1_1_2_1_2 ;
  x3do:colorIndex ( 0 1 2 ) ;
  x3do:colorPerVertex false ;
  x3do:coordIndex ( 0 1 -1 0 2 -1 0 3 -1 ) .
:Coordinate_2_7_1_1_1_2_1_1 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedLineSet_2_7_1_1_1_2_1 ;
  x3do:point ( 0 0 0 1.78 0 0 0 1.78 0 0 0 1.78 ) .
:Color_2_7_1_1_1_2_1_2 a owl:NamedIndividual, x3do:Color ;
  x3do:hasParent :IndexedLineSet_2_7_1_1_1_2_1 ;
  x3do:color ( 1 0 0 0 0.6 0 0 0 1 ) .
:Appearance_2_7_1_1_1_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :AxisLinesShape ;
  x3do:hasMaterial :Material_2_7_1_1_1_2_2_1 .
:Material_2_7_1_1_1_2_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_7_1_1_1_2_2 ;
  x3do:diffuseColor ( 0.9 0.9 0.9 ) .
:Transform_2_7_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LeftSide ;
  x3do:hasChildren :Shape_2_7_2_1 ;
  x3do:translation ( 0 3 0 ) .
:Shape_2_7_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_7_2 ;
  x3do:hasGeometry :Text_2_7_2_1_1 ;
  x3do:hasAppearance :TextAppearance .
:Text_2_7_2_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_7_2_1 ;
  x3do:hasFontStyle :FontStyle_2_7_2_1_1_1 ;
  x3do:string '"Multiple single-axis" "Transform rotations"' .
:FontStyle_2_7_2_1_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_7_2_1_1 ;
  x3do:family '"SANS"' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.5 ;
  x3do:cssStyle 'BOLD' .
:TextAppearance a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_7_2_1 ;
  x3do:hasMaterial :Material_2_7_2_1_2_1 ;
  x3do:DEF 'TextAppearance' .
:Material_2_7_2_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :TextAppearance ;
  x3do:diffuseColor ( 0.1 0.2 0.9 ) .
:Transform_2_7_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LeftSide ;
  x3do:hasChildren :Shape_2_7_3_1 ;
  x3do:translation ( 0 -3 0 ) .
:Shape_2_7_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_7_3 ;
  x3do:hasGeometry :Text_2_7_3_1_1 ;
  x3do:hasAppearance :TextAppearance-USE-1 .
:Text_2_7_3_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_7_3_1 ;
  x3do:hasFontStyle :FontStyle_2_7_3_1_1_1 ;
  x3do:string '"using multiple" "nested Transform nodes"' .
:FontStyle_2_7_3_1_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_7_3_1_1 ;
  x3do:family '"SANS"' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.5 ;
  x3do:cssStyle 'BOLD' .
:TextAppearance-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_7_3_1 ;
  owl:sameAs :TextAppearance . # DEF matching this USE
:TransparentBacking1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :LeftSide ;
  x3do:hasGeometry :Box_2_7_4_1 ;
  x3do:hasAppearance :TransparentAppearance ;
  x3do:DEF 'TransparentBacking1' .
:Box_2_7_4_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :TransparentBacking1 ;
  x3do:size ( 7 7 0.1 ) .
:TransparentAppearance a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :TransparentBacking1 ;
  x3do:hasMaterial :Material_2_7_4_2_1 ;
  x3do:DEF 'TransparentAppearance' .
:Material_2_7_4_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :TransparentAppearance ;
  x3do:transparency 1 .
:TouchLeftCube a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :LeftSide ;
  x3do:DEF 'TouchLeftCube' ;
  x3do:description 'Hold for direct left-side view, no parallax' .
:ROUTE_2_7_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :LeftSide ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TouchLeftCube' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'ViewLeft' .
:RightSide a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :ComposedRotation, :Transform_2_8_2, :Transform_2_8_3, :TransparentBacking2, :TouchRightCube ;
  x3do:hasROUTE :ROUTE_2_8_6 ;
  x3do:DEF 'RightSide' ;
  x3do:translation ( 4 0 0 ) .
:ComposedRotation a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RightSide ;
  x3do:hasChildren :CubeWithLabeledSides2, :AxisLinesShape-USE-1 ;
  x3do:DEF 'ComposedRotation' ;
  x3do:rotation ( 0.87262 0.40202 0.27735 2.24592 ) .
:CubeWithLabeledSides2 a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :ComposedRotation ;
  x3do:hasMetadata :MetadataString_2_8_1_1_1 ;
  x3do:DEF 'CubeWithLabeledSides2' ;
  x3do:url '"../GeometricShapes/CubeWithLabeledSides.x3d" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.x3d" "../GeometricShapes/CubeWithLabeledSides.wrl" "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/CubeWithLabeledSides.wrl"' .
:MetadataString_2_8_1_1_1 a owl:NamedIndividual, x3do:MetadataString ;
  x3do:hasParent :CubeWithLabeledSides2 ;
  x3do:name 'profile' ;
  x3do:value '"Interchange"' .
:AxisLinesShape-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :ComposedRotation ;
  owl:sameAs :AxisLinesShape . # DEF matching this USE
:Transform_2_8_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RightSide ;
  x3do:hasChildren :Shape_2_8_2_1 ;
  x3do:translation ( 0 3 0 ) .
:Shape_2_8_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_8_2 ;
  x3do:hasGeometry :Text_2_8_2_1_1 ;
  x3do:hasAppearance :TextAppearance-USE-2 .
:Text_2_8_2_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_8_2_1 ;
  x3do:hasFontStyle :FontStyle_2_8_2_1_1_1 ;
  x3do:string '"Single composed" "Transform rotation"' .
:FontStyle_2_8_2_1_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_8_2_1_1 ;
  x3do:family '"SANS"' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.5 ;
  x3do:cssStyle 'BOLD' .
:TextAppearance-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_8_2_1 ;
  owl:sameAs :TextAppearance . # DEF matching this USE
:Transform_2_8_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RightSide ;
  x3do:hasChildren :Shape_2_8_3_1 ;
  x3do:translation ( 0 -3 0 ) .
:Shape_2_8_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_8_3 ;
  x3do:hasGeometry :Text_2_8_3_1_1 ;
  x3do:hasAppearance :TextAppearance-USE-3 .
:Text_2_8_3_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_8_3_1 ;
  x3do:hasFontStyle :FontStyle_2_8_3_1_1_1 ;
  x3do:string '"computed with X3D-Edit" "Rotation Calculator"' .
:FontStyle_2_8_3_1_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_8_3_1_1 ;
  x3do:family '"SANS"' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.5 ;
  x3do:cssStyle 'BOLD' .
:TextAppearance-USE-3 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_8_3_1 ;
  owl:sameAs :TextAppearance . # DEF matching this USE
:TransparentBacking2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :RightSide ;
  x3do:hasGeometry :Box_2_8_4_1 ;
  x3do:hasAppearance :TransparentAppearance-USE-1 ;
  x3do:DEF 'TransparentBacking2' .
:Box_2_8_4_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :TransparentBacking2 ;
  x3do:size ( 7 7 0.1 ) .
:TransparentAppearance-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :TransparentBacking2 ;
  owl:sameAs :TransparentAppearance . # DEF matching this USE
:TouchRightCube a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :RightSide ;
  x3do:DEF 'TouchRightCube' ;
  x3do:description 'Hold for direct right-side view, no parallax' .
:ROUTE_2_8_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :RightSide ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TouchRightCube' ;
  x3do:toField 'set_bind' ;
  x3do:toNode 'ViewRight' .
