linear_model: Linear model coefficents

Description Usage Arguments Value Examples

Description

Calculate beta coefficients for a straight line connecting two points. This function is used to calculate strength of attack with distance redcution.

Usage

1

Arguments

a

first point - numeric vector of length of 2

b

second point - numeric vector of length of 2

Value

Beta coefficients for line which connects points a and b

Examples

1
linear_model(a = c(0, 10), b = c(10, 1))

lwawrowski/combat documentation built on June 14, 2019, 3:23 p.m.