simulations.objects
Class EMTransform

java.lang.Object
  extended bysimulations.objects.BaseObject
      extended bysimulations.objects.EMTransform

public class EMTransform
extends BaseObject


Field Summary
(package private)  Vec3[] invrot
           
(package private)  Vec3 origin
           
(package private)  Vec3[] rot
           
(package private)  BaseObject source
           
private  Vec3 temp
           
 
Constructor Summary
EMTransform(BaseObject source)
           
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          Sets 'B' to the value of the magnetic field at 'x'.
 Vec3 Efield(Vec3 x, Vec3 E)
          Sets 'E' to the value of the electric field at 'x'.
 void Identity()
           
 void RigidTransform(Vec3 axis, double angle, Vec3 trans)
           
 void Rotation(Vec3 axis, double angle)
           
 void Translation(Vec3 trans)
           
 
Methods inherited from class simulations.objects.BaseObject
Bfield, Efield, Evolve, Pfield, Pfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

BaseObject source

rot

Vec3[] rot

invrot

Vec3[] invrot

origin

Vec3 origin

temp

private Vec3 temp
Constructor Detail

EMTransform

public EMTransform(BaseObject source)
Method Detail

Identity

public void Identity()

Translation

public void Translation(Vec3 trans)

Rotation

public void Rotation(Vec3 axis,
                     double angle)

RigidTransform

public void RigidTransform(Vec3 axis,
                           double angle,
                           Vec3 trans)

Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
Description copied from class: BaseObject
Sets 'E' to the value of the electric field at 'x'. 'x' is not modified. Returns: resulting 'E'

Specified by:
Efield in class BaseObject
Parameters:
x - the position of the observer
E - the electric field at the observer's position
Returns:
E the electric field at the observer's position

Bfield

public Vec3 Bfield(Vec3 x,
                   Vec3 B)
Description copied from class: BaseObject
Sets 'B' to the value of the magnetic field at 'x'. 'x' is not modified. Returns: resulting 'B'. * @param x the position of the observer

Specified by:
Bfield in class BaseObject
Parameters:
B - the magnetic field at the observer's position
Returns:
B the magnetic field at the observer's position