offset_point: Offset Point from Center

View source: R/utils-geometry.R

offset_pointR Documentation

Offset Point from Center

Description

Calculate a point offset from another point by a given distance.

Usage

offset_point(x, y, toward_x, toward_y, offset)

Arguments

x, y

Original point.

toward_x, toward_y

Point to offset toward.

offset

Distance to offset.

Value

List with x, y coordinates.


cograph documentation built on April 1, 2026, 1:07 a.m.