Point Utils
Functions
Link copied to clipboard
open fun transform(point: Point, srcWidth: Int, srcHeight: Int, destWidth: Int, destHeight: Int): Point
open fun transform(point: Point, srcWidth: Int, srcHeight: Int, destWidth: Int, destHeight: Int, isFit: Boolean): Point
转换坐标:将原始 point 的坐标点从原始:srcWidth,srcHeight 进行换算后,转换成目标:destWidth,destHeight 后的坐标点
open fun transform(x: Int, y: Int, srcWidth: Int, srcHeight: Int, destWidth: Int, destHeight: Int): Point
open fun transform(x: Int, y: Int, srcWidth: Int, srcHeight: Int, destWidth: Int, destHeight: Int, isFit: Boolean): Point
转换坐标:将原始 x,y 的坐标点从原始:srcWidth,srcHeight 进行换算后,转换成目标:destWidth,destHeight 后的坐标点