Class Index | File Index

Classes


Class VENISON.UTILITIES.Transformation

A transformation utility class used by the Venison Engine. Contains position, rotation and scale.
Defined in: venison_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
VENISON.UTILITIES.Transformation(iX, iY, iRot, iScaleX, iScaleY)
Field Summary
Field Attributes Field Name and Description
 
A VENISON.UTILITIES.Vector2 representing the position.
 
The rotation in radians.
 
A VENISON.UTILITIES.Vector2 representing the scale.
Method Summary
Method Attributes Method Name and Description
 
Copy function
 
Transform a point from object coordinates to world coordinates.
 
Transform a point from world coordinates to object coordinates.
Class Detail
VENISON.UTILITIES.Transformation(iX, iY, iRot, iScaleX, iScaleY)
Parameters:
{Number} iX
The x component of the position vector.
{Number} iY
The y component of the position vector.
{Number} iRot
The rotation.
{Number} iScaleX
The x component of the scale vector.
{Number} iScaleY
The y component of the scale vector.
Field Detail
{VENISON.UTILITIES.Vector2} position
A VENISON.UTILITIES.Vector2 representing the position.

{Number} rotation
The rotation in radians.

{VENISON.UTILITIES.Vector2} scale
A VENISON.UTILITIES.Vector2 representing the scale.
Method Detail
{VENISON.UTILITIES.Transformation} fnCopy()
Copy function
Returns:
{VENISON.UTILITIES.Transformation} A new Transformation that is identical to this one.

{VENISON.UTILITIES.Vector2} fnLocalToWorld(iPoint)
Transform a point from object coordinates to world coordinates.
Parameters:
{VENISON.UTILITIES.Vector2} iPoint
The point in local space to transform to world space.
Returns:
{VENISON.UTILITIES.Vector2} The point in world space.

{VENISON.UTILITIES.Vector2} fnWorldToLocal(iPoint)
Transform a point from world coordinates to object coordinates.
Parameters:
{VENISON.UTILITIES.Vector2} iPoint
The point in world space to transform to local space.
Returns:
{VENISON.UTILITIES.Vector2} The point in local space.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 18:47:29 GMT+0200 (CEST)