CartesianSurface.z

Method to access height map.

class CartesianSurface
@property
Slice!(double*, 2)
z
(
)

Return Value

Type: Slice!(double*, 2)

Slice!(double*, 2) containing surface's height map with dimensions nx * ny

Examples

1 for (int i = 0; i < surface.nx; i++) {
2     for (int j = 0; j < surface.ny; j++) {
3         surface.z[i][j] = 0;
4     }
5 }

Meta