Learn R Programming

cwhmisc (version 6.0)

clocksense: Functions for directed arcs

Description

Functions for clocksense, i.e. directed arcs

Usage

IsCounterCl2( U, V, ref ) IsCounterCl3( U, V, W, ref ) ClockSense2( U, V, ref ) ClockSense3( U, V, W, ref )

Arguments

ref,U,V,W
Real

Details

CounterClock, NoneClock, Clockwise = "clckws", "Cntclck","noneclck", "clckws" ClockSense2 Return the clock sense of U and V ClockSense3 Return the clock sense of U, V, W IsCounterCl2 Check if the directed angle from U towards W is counter clockwise, including U==W. Ref is the measure of a full circle, 360 for degrees, 2*Pi for radians, 400 for gon IsCounterCl3 Check if U, V, W form a counterclock wise sequence.

Examples

Run this code
ClockSense2(0,220,360) # "clckws"
ClockSense2(0,170,360) # "Cntclck"
ClockSense2(0,0,360) # "noneclck"

Run the code above in your browser using DataLab