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

Function getYIntercept

src/cdk/menu/menu.spec.ts:99–101  ·  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

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

Callers 1

getNextPointIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected