Interface VectorFieldRenderer.VectorFieldFunction
- Enclosing class:
VectorFieldRenderer
public static interface VectorFieldRenderer.VectorFieldFunction
Primitive interface for vector fields to avoid boxing/allocations.
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompute(double x, double y, double[] out) Computes the vector at position (x, y).
-
Method Details
-
compute
boolean compute(double x, double y, double[] out) Computes the vector at position (x, y).- Parameters:
x- X coordinate in data space.y- Y coordinate in data space.out- Array of length 2 with the result [dx, dy].- Returns:
- true if a vector exists, otherwise false.
-