nurbsSurface.controlPoint
The Euclidean position of control point (i, j): row i along u, column j along v.
Usage
surface.controlPoint(i: number, j: number): Point3Parameters
inumberRow, 0 … rows − 1 (along u).
jnumberColumn, 0 … cols − 1 (along v).
Returns
The point; its coordinates are undefined or wrong when i or j is out of range (no bounds check: an overlong j reads the next row).
Example
const s = NurbsSurface.create([[Point3.of(0, 0, 0), Point3.of(0, 2, 0)], [Point3.of(3, 0, 0), Point3.of(3, 2, 0)]], 1, 1).value
s.controlPoint(1, 0) // → { x: 3, y: 0, z: 0 }