Class: VelocityField

VelocityField

new VelocityField(width, height, numSeedPoints)

Parameters:
Name Type Description
width number the width of the field
height number the height of the field
numSeedPoints number number of seed points
Source:

Methods

getAverageFieldData(x, y) → {VelocityFieldPoint}

get average field data for a given point
Parameters:
Name Type Description
x number x coordinate
y number y coordinate
Source:
Returns:
Type
VelocityFieldPoint

getVelocityFieldPoint(x, y) → {VelocityFieldPoint}

Parameters:
Name Type Description
x number x coordinate
y number y coordinate
Source:
Returns:
Type
VelocityFieldPoint

initCustomField()

inits a custom velocity field
Source: