构造函数
方法
静态
getGid
getGid(cellindex: number, nativeId: number): number 参数
- cellindex: number
- nativeId: number
返回 number
静态
getNativeId
getNativeId(groupId: number, index: number): number 参数
- groupId: number
- index: number
返回 number
静态
getRotateAngle
getRotateAngle(rotateCount: number, tileShape: TileShape): number
静态
getUvRotate
getUvRotate( tileshape: TileShape, flip_v?: boolean, flip_h?: boolean, transpose?: boolean, rountCount?: number,): Vector4 参数
- tileshape: TileShape
- flip_v: boolean = false
- flip_h: boolean = false
- transpose: boolean = false
- rountCount: number = 0
静态
parseCellIndex
parseCellIndex(gid: number): number
静态
parseGroupId
parseGroupId(gid: number): number
静态
parseNativeIndex
parseNativeIndex(gid: number): number
静态
quickFoundIndex
quickFoundIndex(array: number[], value: number): number 参数
- array: number[]
- value: number
返回 number
静态
transfromPointByValue
transfromPointByValue( matrix: Matrix, x: number, y: number, point: Vector2,): void
静态
transfromPointNByValue
transfromPointNByValue( matrix: Matrix, x: number, y: number, point: Vector2,): void
对格子进行uv翻转 先做45度斜角翻转,然后再做水平或者垂直翻转,最后再旋转 (六边形旋转每次旋转60度,四边形旋转每次旋转90度)