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))

drknexus/repsych documentation built on May 15, 2019, 2:19 p.m.