FromPolar(Double,Double,Double,Double,Double[,],Double[,],VectorAngleUnit,IPointMetadata[,],FieldDataDistributionArgs) Method
Creates a new UniformVectorFieldDataSeries from polar (angle, magnitude) inputs with optional distribution hints.
Syntax
public static UniformVectorFieldDataSeries FromPolar( double xStart, double xStep, double yStart, double yStep, double[,] angle, double[,] magnitude, VectorAngleUnit angleUnit, IPointMetadata[,] metadata, FieldDataDistributionArgs args )
Parameters
- xStart
- The X coordinate of the first grid column.
- xStep
- The spacing between adjacent grid columns.
- yStart
- The Y coordinate of the first grid row.
- yStep
- The spacing between adjacent grid rows.
- angle
- 2D array of direction angles, indexed as
[xi, yi]. - magnitude
- 2D array of magnitudes, indexed as
[xi, yi]. Must have the same dimensions as angle. - angleUnit
- Specifies whether angle values are in VectorAngleUnit.Radians or VectorAngleUnit.Degrees.
- metadata
- Optional 2D metadata array indexed as
[xi, yi], matching the grid dimensions of angle. - args
- Optional distribution hints that allow the data series to skip expensive O(N) scans.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also