cent_to_edge: Calculate Point on Node Boundary

View source: R/splot-geometry.R

cent_to_edgeR Documentation

Calculate Point on Node Boundary

Description

Given a node center, size, and angle, calculates the point on the node boundary. Works with various shapes.

Usage

cent_to_edge(x, y, angle, cex, cex2 = NULL, shape = "circle")

Arguments

x

Node center x coordinate.

y

Node center y coordinate.

angle

Angle in radians.

cex

Node size (radius in user coordinates).

cex2

Secondary size for ellipse width (NULL for square aspect).

shape

Node shape: "circle", "square", "ellipse", or polygon name.

Value

List with x, y coordinates on boundary.


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