     offsetY = $("#header").height()
     canvasX = event.clientX
     canvasY = event.clientY + offsetY
-    mouse2D.x = ( canvasX / MYTHREE.global.W ) * 2 - 1
-    mouse2D.y = - ( canvasY / MYTHREE.global.W ) * 2 + 1
+    mouse2D.x = ( canvasX / MYTHREE.const.W ) * 2 - 1
+    mouse2D.y = - ( canvasY / MYTHREE.const.W ) * 2 + 1
     #console.log("mouse X, Y", mouse2D.x, mouse2D.y); #-1.0 ~ 1.0 
     intersects = raycaster.intersectObjects( scene.children )
     if intersects.length > 0

  init = -> 
    container = document.getElementById('container')
    $container = $(container)
    #ウィンドウ全体
    W = window.innerWidth
    H = window.innerHeight
    H = W * (800/1280)
    console.log('innerW,H', W, H)
    MYTHREE.global.W = W
    MYTHREE.global.H = H
    camera = new THREE.PerspectiveCamera( 4, W/H, 1, 10000 )
    camera.position.y = 400
    scene = new THREE.Scene()
    scene.add( MYTHREE.getGrid() )
    projector = new THREE.Projector()
    scene.add( MYTHREE.getRayHitPlane() )

window.MYTHREE = window.MYTHREE || {}

#定数
MYTHREE.const = {}
MYTHREE.const.W = window.innerWidth;
MYTHREE.const.H = MYTHREE.const.W * (800/1280);

#---ヘルパー---

#グリッド線
MYTHREE.getGrid = ->
