This site requires javascript.
Android Code Search
file:androidx/core/graphics/Point.kt function:minus
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
core/core-ktx/src/main/java/androidx/core/graphics/
Point.kt
content_copy
Preview
92:
93:
94:
*/
public
inline
operator
fun
Point.
minus
(p: Point): Point {
return
Point(x, y).apply { offset(-p.x, -p.y) }
99:
100:
101:
*/
public
inline
operator
fun
PointF.
minus
(p: PointF): PointF {
return
PointF(x, y).apply { offset(-p.x, -p.y) }
107:
108:
109:
*/
public
inline
operator
fun
Point.
minus
(xy: Int): Point {
return
Point(x, y).apply { offset(-xy, -xy) }
115:
116:
117:
*/
public
inline
operator
fun
PointF.
minus
(xy: Float): PointF {
return
PointF(x, y).apply { offset(-xy, -xy) }
120:
121:
122:
123:
124:
125:
/** Returns a new point representing the negation of this point. */
public
inline
operator
fun
Point.unary
Minus
(): Point = Point(-x, -y)
/** Returns a new point representing the negation of this point. */
public
inline
operator
fun
PointF.unary
Minus
(): PointF = PointF(-x, -y)
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main