Learn R Programming

rayimage (version 0.2.3)

generate_2d_disk: Generate 2D Disk

Description

Generates a 2D disk with a gradual falloff.

Disk generated using the following formula:

The origin of the coordinate system is the center of the matrix.

Usage

generate_2d_disk(dim = 11)

Arguments

dim

Default 11. The dimensions of the resulting square matrix.

Examples

Run this code
# NOT RUN {
image(generate_2d_disk(101), asp=1)
# }

Run the code above in your browser using DataLab