SkIPoint16 Reference

IPoint16

Overview

Overview Subtopic

namedescription
Constructorfunctions that construct SkIPoint16
Member Functionstatic functions and member methods
Membermember values
Related Functionsimilar methods grouped together

Struct SkIPoint16

SkIPoint16 holds two 16 bit integer coordinates.

Related Function

namedescription
Propertymember values
Setreplaces all values

Member Function

namedescription
Makeconstructs from integer inputs
setsets to integer input
xreturns fX
yreturns fY

Member

namedescription
fXx-axis value
fYy-axis value

int16_t fX

x-axis value used by IPoint16

int16_t fY

y-axis value used by IPoint16

Constructor

namedescription
Makeconstructs from integer inputs

Make

Sets fX to x, fY to y. If SK_DEBUG is defined, asserts if x or y does not fit in 16 bits.

Parameters

Return Value

IPoint16 (x, y)

Example

Example Output

pt1.fX == pt2.fX
pt1.fY == pt2.fY

See Also

set SkPoint::iset()[2] SkIPoint::Make


Property

namedescription
xreturns fX
yreturns fY

x

Returns x-axis value of IPoint16.

Return Value

fX

Example

Example Output

pt1.fX == pt1.x()

See Also

y SkIPoint::x()


y

Returns y-axis value of IPoint.

Return Value

fY

Example

Example Output

pt1.fY == pt1.y()

See Also

x SkPoint::y() SkIPoint::y()


Set

namedescription
setsets to integer input

set

Sets fX to x and fY to y.

Parameters

Example

Example Output

pt1.fX == pt2.fX
pt1.fY == pt2.fY

See Also

Make SkPoint::set