Rectangular XY Plane Object

xy_rect(x = 0, y = 0, z = 0, xwidth = 1, ywidth = 1,
material = lambertian(), angle = c(0, 0, 0), order_rotation = c(1,
2, 3), flipped = FALSE)

## Arguments

x Default 0. x-coordinate of the center of the rectangle. Default 0. x-coordinate of the center of the rectangle. Default 0. z-coordinate of the center of the rectangle. Default 1. x-width of the rectangle. Default 1. y-width of the rectangle. Default lambertian.The material, called from one of the material functions lambertian, metal, or dielectric. Default c(0,0,0). Angle of rotation around the x, y, and z axes, applied in the order specified in order_rotation. Default c(1,2,3). The order to apply the rotations, referring to "x", "y", and "z". Default FALSE. Whether to flip the normals.

## Value

Single row of a tibble describing the XY plane in the scene.

## Examples

#Generate a purple rectangle in the cornell box.
generate_cornell() %>%
render_scene(lookfrom = c(278,278,-800) ,lookat = c(278,278,0), fov = 40, ambient_light=FALSE)