org.jrabbit.standard.game.world.camera.components
Class SceneToCameraCoordTransform

java.lang.Object
  extended by org.jrabbit.standard.game.world.camera.components.SceneToCameraCoordTransform
All Implemented Interfaces:
VectorTransform

public class SceneToCameraCoordTransform
extends java.lang.Object
implements VectorTransform

A SceneToCameraCoordTransform (yes, that's quite a mouthful) converts basic scene coordinates (e.g., those of the Mouse) into coordinates in the viewed gameworld. The method it uses explicitly depends upon using an active Camera.

Author:
Chris Molini

Constructor Summary
SceneToCameraCoordTransform()
           
 
Method Summary
 Vector2f transform(BaseVector2f vector)
          Converts the supplied "scene" coordinates into "world" coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneToCameraCoordTransform

public SceneToCameraCoordTransform()
Method Detail

transform

public Vector2f transform(BaseVector2f vector)
Converts the supplied "scene" coordinates into "world" coordinates.

Specified by:
transform in interface VectorTransform
Parameters:
vector - The Vector2f that indicates the coordinates to be transformed.
Returns:
The coordinates in the gameworld that correspond to the supplied location.