electricalFieldY method
Returns the electrical field in the Y direction acting on a vertex at the given point. By default there is no electrical field at any location.
Used to define an external electrical field at a point independent of the vertex charges.
A vertex L is acted upon by a force in the Y direction of proportional to
electricalFieldY(L.center.x, L.center.y) * electricalCharge(L)
.
Please read the Introduction page on Extensions for how to override methods and how to call this base method.
@expose
@param {number} x
@param {number} y
@return {number} the default implementation returns zero.
Implementation
_i2.num electricalFieldY(
_i2.num x,
_i2.num y,
) =>
_i4.callMethod(
this,
'electricalFieldY',
[
x,
y,
],
);