Package svs_simulation :: Package numdata :: Module transformations
[show private | hide private]
[frames | no frames]

Module svs_simulation.numdata.transformations

Functions for handling geometric transformations.

Author: Simon Yuill

Contact: simon@lipparosa.org

Copyright: 2005 Simon Yuill

License: GNU GPL version 2 or any later version

Function Summary
svs_core.numdata.vectors.Vector2D pointToLocalSpace(point, agentHeading, agentSide, agentPosition)
Transforms a point to an agent's local space.
svs_core.numdata.vectors.Vector2D pointToWorldSpace(point, agentHeading, agentSide, agentPosition)
Transforms a point from the agent's local space into world space.
  vec2DRotateAroundOrigin(vector, angle)
Rotates a vector angle rads around the origin.
svs_core.numdata.vectors.Vector2D vectorToLocalSpace(vector, agentHeading, agentSide)
Transforms a point to an agent's local space.
svs_core.numdata.vectors.Vector2D vectorToWorldSpace(vector, agentHeading, agentSide)
Transforms a vector from the agent's local space into world space.

Function Details

pointToLocalSpace(point, agentHeading, agentSide, agentPosition)

Transforms a point to an agent's local space.
Parameters:
point
           (type=svs_core.numdata.vectors.Vector2D)
agentHeading
           (type=svs_core.numdata.vectors.Vector2D)
agentSide
           (type=svs_core.numdata.vectors.Vector2D)
agentPosition
           (type=svs_core.numdata.vectors.Vector2D)
Returns:
svs_core.numdata.vectors.Vector2D

pointToWorldSpace(point, agentHeading, agentSide, agentPosition)

Transforms a point from the agent's local space into world space.
Parameters:
point
           (type=svs_core.numdata.vectors.Vector2D)
agentHeading
           (type=svs_core.numdata.vectors.Vector2D)
agentSide
           (type=svs_core.numdata.vectors.Vector2D)
agentPosition
           (type=svs_core.numdata.vectors.Vector2D)
Returns:
svs_core.numdata.vectors.Vector2D

vec2DRotateAroundOrigin(vector, angle)

Rotates a vector angle rads around the origin.
Parameters:
vector
           (type=svs_core.numdata.vectors.Vector2D)
angle
           (type=float)

vectorToLocalSpace(vector, agentHeading, agentSide)

Transforms a point to an agent's local space.
Parameters:
vector
           (type=svs_core.numdata.vectors.Vector2D)
agentHeading
           (type=svs_core.numdata.vectors.Vector2D)
agentSide
           (type=svs_core.numdata.vectors.Vector2D)
Returns:
svs_core.numdata.vectors.Vector2D

vectorToWorldSpace(vector, agentHeading, agentSide)

Transforms a vector from the agent's local space into world space.
Parameters:
vector
           (type=svs_core.numdata.vectors.Vector2D)
agentHeading
           (type=svs_core.numdata.vectors.Vector2D)
agentSide
           (type=svs_core.numdata.vectors.Vector2D)
Returns:
svs_core.numdata.vectors.Vector2D

Generated by Epydoc 2.1 on Thu Oct 20 15:30:26 2005 http://epydoc.sf.net