orientation: Signed orientation

Description Usage Arguments Details Value Author(s) Examples

View source: R/orientation.R

Description

Signed orientation

Usage

1
orientation(p, q, r)

Arguments

p

Numeric two-dimensional vector in cartesian coordinates.

q

Numeric two-dimensional vector in cartesian coordinates.

r

Numeric two-dimensional vector in cartesian coordinates.

Details

This function determines the orientation of three points in a plane. Since these points are assumed to come from a random point process, the colinearity case is not considered, since the probability of this eventuality is certainly zero.

Value

Eihter 1 (positive orientation) or -1 (negative orientation).

Author(s)

Daniella Ayala (daniellaayala@ciencias.unam.mx) and Francisco Mendoza-Torres (mentofran@gmail.com)

Examples

1
2
orientation(p=c(0,0), q=c(-1,0), r=c(0,1))
orientation(p=c(0,0), q=c( 1,0), r=c(0,1))

mathphysmx/percolation documentation built on Aug. 14, 2019, 2:03 a.m.