fitts: Fitt's Distance

View source: R/fitts.R

fittsR Documentation

Fitt's Distance

Description

Calculate the Fitt's distance from one element to another. For use in UX design.

Usage

fitts(x1, y1, x2, y2, width)

Arguments

x1

The x-coordinate of the first object

y1

The y-coordinate of the first object

x2

The x-coordinate of the second object

y2

The y-coordinate of the second object

width

The width of the second object

Value

Formatted string of Fitts's distance, showing Movement Time, the regression coefficient, and the width of the element.

Examples

fitts(x1 = 10, y1 = 15, x2 = 50, y2 = 76, width = 120)

ecoberley/MATH4753cobe0001 documentation built on May 3, 2022, 7:30 p.m.