MCPcopy Create free account
hub / github.com/angular/components / getYIntercept

Function getYIntercept

src/cdk/menu/menu.spec.ts:98–100  ·  view source on GitHub ↗

Calculate the y intercept based on some slope and point.

(slope: number, point: Point)

Source from the content-addressed store, hash-verified

96
97 /** Calculate the y intercept based on some slope and point. */
98 function getYIntercept(slope: number, point: Point) {
99 return point.y - slope * point.x;
100 }
101
102 /** Dispatch a mouseout event. */
103 function mouseout(mouseOutOf: HTMLElement) {

Callers 1

getNextPointIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected