rotate_elements: Function to rotate coordinates

View source: R/mohr_circles.R

rotate_elementsR Documentation

Function to rotate coordinates

Description

Simple rotation function used for plotting rotated soil element and stress arrows

Usage

rotate_elements(x, y, theta = 0)

Arguments

x

x-coordinate (array)

y

y-coordinate (array)

theta

rotation angle (array, in radians)

Value

a tibble with rotated positions in fields 'x2' and 'y2'


GJMeijer/soilmech documentation built on May 22, 2022, 10:39 a.m.