spis.Vol.Geom
Class ThreeDCartesianGeom

java.lang.Object
  extended byspis.Vol.Geom.ThreeDCartesianGeom
All Implemented Interfaces:
Geom, java.io.Serializable

public class ThreeDCartesianGeom
extends java.lang.Object
implements Geom, java.io.Serializable

Class Name : ThreeDCartesianGeom
Project ref : SPIS project
File name : ThreeDCartesianGeom.java
File type : interface
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :

Description : Simple 3D cartesian geometry (3+3D phase space)

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel
See Also:
Serialized Form

Constructor Summary
ThreeDCartesianGeom()
           
 
Method Summary
 void computeAngleCos(SpaceVectTable normal, VeloVectTable v, FloatScalTable angleCos)
          Computes the cosine of the angle between 2 vector tables of two different sub-types
 void computeSpaceIncrement(SpaceVectTable dx, VeloVectTable v, float dt)
          Computes the space increment dx resulting from the movement at velovity v during the time dt (formally dx = v dt)
 void computeVeloIncrement(VeloVectTable dv, VeloVectTable a, float dt, VeloVectTable v, SpaceVectTable x)
          Computes the velocity increment dv resulting from the acceleratin a during the time dt (formally dv = a dt)
 void computeVeloSquared(VeloVectTable v, FloatScalTable v2)
          Computes the sqaure of the velovity
 int getSdim()
          Provides the dimension of (real) space
 int getVdim()
          Provides the dimension of velocity space
 float[] spaceToVelo(float[] v)
          transforms a space vector into a velocity vector (may be a kind of projection)
 float[] veloToSpace(float[] v)
          transforms a velocity vector into a space vector (may be a kind of projection)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreeDCartesianGeom

public ThreeDCartesianGeom()
Method Detail

getSdim

public int getSdim()
Provides the dimension of (real) space

Specified by:
getSdim in interface Geom

getVdim

public int getVdim()
Provides the dimension of velocity space

Specified by:
getVdim in interface Geom

computeSpaceIncrement

public void computeSpaceIncrement(SpaceVectTable dx,
                                  VeloVectTable v,
                                  float dt)
Computes the space increment dx resulting from the movement at velovity v during the time dt (formally dx = v dt)

Specified by:
computeSpaceIncrement in interface Geom

computeVeloIncrement

public void computeVeloIncrement(VeloVectTable dv,
                                 VeloVectTable a,
                                 float dt,
                                 VeloVectTable v,
                                 SpaceVectTable x)
Computes the velocity increment dv resulting from the acceleratin a during the time dt (formally dv = a dt)

Specified by:
computeVeloIncrement in interface Geom

computeVeloSquared

public void computeVeloSquared(VeloVectTable v,
                               FloatScalTable v2)
Description copied from interface: Geom
Computes the sqaure of the velovity

Specified by:
computeVeloSquared in interface Geom
Parameters:
v - velocity vector (input)
v2 - veleocity norm square (output)
See Also:
Geom.computeVeloSquared(VeloVectTable, FloatScalTable)

computeAngleCos

public void computeAngleCos(SpaceVectTable normal,
                            VeloVectTable v,
                            FloatScalTable angleCos)
Description copied from interface: Geom
Computes the cosine of the angle between 2 vector tables of two different sub-types

Specified by:
computeAngleCos in interface Geom
Parameters:
normal - vertor of space syb-type (typically a normal to a surface)
v - vector of velocity type (typically a velocity)
angleCos - the cosine of their angle (the result)
See Also:
Geom.computeAngleCos(SpaceVectTable, VeloVectTable, FloatScalTable)

spaceToVelo

public float[] spaceToVelo(float[] v)
transforms a space vector into a velocity vector (may be a kind of projection)

Specified by:
spaceToVelo in interface Geom
Parameters:
v - input space vector
Returns:
output velocity vector

veloToSpace

public float[] veloToSpace(float[] v)
transforms a velocity vector into a space vector (may be a kind of projection)

Specified by:
veloToSpace in interface Geom
Parameters:
v - input velocity vector
Returns:
output space vector