aspect: Solve right-triangles systems involving (monitor) aspect...

Description Usage Arguments Value References Examples

Description

I designed this to calculate values for monitor aspect ratios, but I imagine it is more general. Given any two or three values, solve for the missing values. Note, the values are not checked so the principle of GIGO applies.

Usage

1
  aspect(w = NULL, h = NULL, d = NULL, aspect = NULL)

Arguments

w

Width

h

Height

d

Diagonal

aspect

Aspect ratio (w/h)

Value

numeric The length of the unspecified side

References

http://en.wikipedia.org/wiki/Pythagorean_theorem

Examples

1
pythag(a=3,c=pythag(3,4))

russmisc documentation built on May 2, 2019, 4:44 p.m.