transform_segment: Transform Coordinates of Segment

View source: R/construct_transform_coordinates.R

transform_segmentR Documentation

Transform Coordinates of Segment

Description

Helper function to apply transform_df_coords() to the dataframe constructed by construct_grid() or similar.

Usage

transform_segment(df, m)

Arguments

df

Dataframe with column names x, y, xend, yend.

m

2x2 matrix.

Value

Dataframe with same column names but coordinates transformed according to m.


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.