gravitationalFieldY method
This returns the gravitational field in the Y direction acting on a vertex at the given point. By default there is no gravitational field at any location.
Used to define an external gravitational field at a point independent of the vertex masses.
A vertex L is acted upon by a force in the Y direction of proportional to
gravitationalFieldY(L.center.x, L.center.y) * gravitationalMass(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 gravitationalFieldY(
_i2.num x,
_i2.num y,
) =>
_i4.callMethod(
this,
'gravitationalFieldY',
[
x,
y,
],
);