electricalFieldX method

num electricalFieldX(
  1. num x,
  2. num y
)

Returns the electrical field in the X 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 X direction of proportional to electricalFieldX(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 electricalFieldX(
  _i2.num x,
  _i2.num y,
) =>
    _i4.callMethod(
      this,
      'electricalFieldX',
      [
        x,
        y,
      ],
    );