renderPoint

Calculate and return the correct rendering coordinate, which can make the texture's center coincides with the given point specified by its coordinates.

Return

the rendering point.

Parameters

x

the X coordinate of the point.

y

the Y coordinate of the point.


fun renderPoint(x: Int, y: Int, rad: Double): Point

Calculate and return the correct rendering coordinate, which can make center of the rotated texture, the rotate degree is specified in parameters, coincides with the given point specified by its coordinates.

Return

the rendering point.

Parameters

x

the X coordinate of the point.

y

the Y coordinate of the point.

rad

the rotate degree.


fun renderPoint(x: Int, y: Int, sin: Double, cos: Double): Point

Calculate and return the correct rendering coordinate, which can make center of the rotated texture, the rotate degree is specified in parameters, coincides with the given point specified by its coordinates.

Return

the rendering point.

Parameters

x

the X coordinate of the point.

y

the Y coordinate of the point.

sin

the sin value of the rotate degree

cos

the cos value of the rotate degree