对像素进行取整保证在不同分辨率下保持清晰
This commit is contained in:
@@ -456,6 +456,10 @@ module es {
|
||||
return t - Math.floor(t / length) * length;
|
||||
}
|
||||
|
||||
public static floorToInt(f: number) {
|
||||
return Math.trunc(Math.floor(f));
|
||||
}
|
||||
|
||||
/**
|
||||
* 将值绕一圈移动的助手
|
||||
* @param position
|
||||
|
||||
Reference in New Issue
Block a user