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

Function getYIntercept

src/cdk/menu/menu-aim.ts:71–73  ·  view source on GitHub ↗

Calculate the y intercept for the given point and slope.

(point: Point, slope: number)

Source from the content-addressed store, hash-verified

69
70/** Calculate the y intercept for the given point and slope. */
71function getYIntercept(point: Point, slope: number) {
72 return point.y - slope * point.x;
73}
74
75/** Represents a coordinate of mouse travel. */
76type Point = {x: number; y: number};

Callers 1

_isMovingToSubmenuMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected