MCPcopy Index your code
hub / github.com/angular/components / getSlope

Function getSlope

src/cdk/menu/menu.spec.ts:94–96  ·  view source on GitHub ↗

Calculate the slope between two points.

(from: Point, to: Point)

Source from the content-addressed store, hash-verified

92
93 /** Calculate the slope between two points. */
94 function getSlope(from: Point, to: Point) {
95 return (to.y - from.y) / (to.x - from.x);
96 }
97
98 /** Calculate the y intercept based on some slope and point. */
99 function getYIntercept(slope: number, point: Point) {

Callers 1

getNextPointIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…