Skip to content

Interface: RoundedCorner ​

One corner of a polygon after rounding: the outline runs straight to start, follows a circular arc of radius around center to end, then continues. When radius is 0 (a straight-through or degenerate corner), start, end and center are all the original vertex.

Properties ​

center ​

ts
center: Vec;

end ​

ts
end: Vec;

radius ​

ts
radius: number;

start ​

ts
start: Vec;

sweep ​

ts
sweep: number;

Signed arc angle in radians, from start to end around center (atan2 convention, y down).


vertex ​

ts
vertex: Vec;

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).