Uses of Class
org.evoludo.geom.Vector3D
Packages that use Vector3D
-
Uses of Vector3D in org.evoludo.geom
Methods in org.evoludo.geom that return Vector3DModifier and TypeMethodDescriptionVector3D.add
(double dx, double dy, double dz) Shift the coordinates of this 3D vector bydx
,dy
anddz
in thex
-,y
-, andz
-coordinates, respectively.Add the 3D vectorsa
andb
and store result in this vector.Add the 3D vectoradd
to this vector.Calculate the cross product of the 3D vectord
and this vector.Calculate the cross product of two 3D vectorsa
,b
and store result in this vector.Vector3D.negate()
Negates the coordinates of 3D vectorv
to obtain-v
.Vector3D.normalize()
Normalizes the 3D vectorv
such that its length is|v|=1
while preserving the direction.Vector3D.normalize
(double l) Normalizes the 3D vectorv
such that its length isl
, i.e.Scales the 3D vectorv
by the scalar factors
and adds the 3D vectora
,v=s*v+a
.Set the 3D vector pointing fromfrom
toto
.Vector3D.sub
(double dx, double dy, double dz) Subtractdx
,dy
anddz
from thex
-,y
-, andz
-coordinates, respectively.Subtract the 3D vectorsub
from this vector.Subtract 3D vectorsb
froma
and store result in this 3D vector.Methods in org.evoludo.geom with parameters of type Vector3DModifier and TypeMethodDescriptionAdd the 3D vectoradd
to this vector.Calculate the cross product of the 3D vectord
and this vector.Calculate the cross product of two 3D vectorsa
,b
and store result in this vector.double
Calculate the dot product of 3D vectord
and this vector.Scales the 3D vectorv
by the scalar factors
and adds the 3D vectora
,v=s*v+a
.Subtract the 3D vectorsub
from this vector.Subtract 3D vectorsb
froma
and store result in this 3D vector.Constructors in org.evoludo.geom with parameters of type Vector3D -
Uses of Vector3D in org.evoludo.simulator
Fields in org.evoludo.simulator declared as Vector3DModifier and TypeFieldDescriptionprivate final Vector3D
Network3D.attraction
Helper variable to store intermediate results when considering the potential energy resulting from the attraction between neighbouring nodes.private final Vector3D
Network3D.repulsion
Helper variable to store intermediate results when considering the potential energy resulting from the repulsion between nodes.private final Vector3D
Network3D.vec
Temporary storage for the directional vector connecting two nodes.