Skip to contents

A rectangular prism (box) with independent width, height, and depth.

Public fields

dimensions

c(width, height, depth)

Methods

Public methods

Inherited methods


Method new()

Create a Prism

Usage

Prism$new(dimensions = c(3, 2, 1), color = BLUE, fill_opacity = 0.8, ...)

Arguments

dimensions

c(width, height, depth)

color

Color

fill_opacity

Opacity

...

Additional args


Method clone()

The objects of this class are cloneable with this method.

Usage

Prism$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.