Skip to main content

exaggerate_coord

Function exaggerate_coord 

Source
pub fn exaggerate_coord(
    point: &Coordinate,
    anchor: &Coordinate,
    scale: f64,
) -> Coordinate
Expand description

Applies an affine scale-from-anchor transform to a single coordinate.

The new position is: anchor + scale * (point − anchor).

§Arguments

  • point – Coordinate to transform.
  • anchor – Fixed reference point.
  • scale – Scale factor.