- All Known Implementing Classes:
CurrentPointSource
,ElectricMonopole
public interface PointSource
Accessible interface for PointSources.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
getField
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D r) org.apache.commons.math3.geometry.euclidean.threed.Vector3D
For debugging purposesvoid
scale
(double scalingFactor) Multiplies the strength of this source with the given scaling factor
-
Method Details
-
getLocation
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocation()For debugging purposes- Returns:
- the location of the source
-
getField
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getField(org.apache.commons.math3.geometry.euclidean.threed.Vector3D r) - Returns:
- B or E field of the source.
-
scale
void scale(double scalingFactor) Multiplies the strength of this source with the given scaling factor- Parameters:
scalingFactor
- -A scaling factor
-
copy
PointSource copy()- Returns:
- Shallow copy of the source except the strength (current or charge)
-