package coortype;
import java.awt.geom.AffineTransform;
public class CGridTransform extends AffineTransform {
int row = -1;
int col = -1;
float[] points;
GRectF rect;
CGridTransform(GRectF rect,float[] points, int Col,int Row){
this.points = points;
this.rect =rect ;
this.row = Row;
this.col = Col;
}
public void inverseTransform(float[] var1, int var2, float[] var3, int var4, int var5, boolean var6) {
GVector2 var7 = new GVector2();
GVector2 var8 = new GVector2();
for(int var9 = 0; var9 < var5; ++var9) {
int var10 = var2 + var9 * 2;
var7.setX(var1[var10]);
var7.setY(var1[var10 + 1]);
this.inverseTransform(var7, var8, var6);
int var11 = var4 + var9 * 2;
var3[var11] = var8.getX();
var3[var11 + 1] = var8.getY();
}
}
public final GVector2 inverseTransform(GVector2 var1, GVector2 var2, boolean var3) {
return var3 ? this.inverseTransform_3_3_Quad(var1, var2) : this.inverseTransform_2_1(var1, var2);
}
public final GVector2 inverseTransform_3_3_Quad(GVector2 src, GVector2 dst) {
float var16 = src.getX();
float var5 = src.getY();
float[] var6 = new float[2];
boolean var8 = false;
boolean var9 = false;
float[] var7 = get01_ex_quad(var16, var5, (GVector2)null, var6);
float[] var19 = null;
float[] var18 = new float[2];
if(var8 && var9){
}else{
var19 = getPtCRectangleGrid(var7[0], var7[1], var18);
//var19 = getPt(var7[0], var7[1], var18);
}
float var13 = var19[0];
float var14 = var19[1];
dst.setX(var13);
dst.setY(var14);
return dst;
}
public final GVector2 inverseTransform_2_1( GVector2 var1, GVector2 var2) {
return null;
}
float[] get01_ex_quad(float var1, float var2, GVector2 var3, float[] var4){
int var5 = this.col + 1;
GRectF var6 = this.getBoundsRect();
if (!var6.contains(var1, var2)) {
return null;
} else {
float var7 = Float.NaN;
float var8 = 0.0F;
float var9 = 0.0F;
GVector2 var10 = new GVector2();
GVector2 var11 = new GVector2();
GVector2 var12 = new GVector2();
GVector2 var13 = new GVector2();
GVector2 var14 = new GVector2(var1, var2);
int var15 = 0;
int var16 = this.row - 1;
if (var15 <= var16) {
while(true) {
int var17 = 0;
int var18 = this.col - 1;
if (var17 <= var18) {
while(true) {
var10.setX(this.points[2 * (var17 + var15 * var5)]);
var10.setY(this.points[2 * (var17 + var15 * var5) + 1]);
var11.setX(this.points[2 * (var17 + 1 + var15 * var5)]);
var11.setY(this.points[2 * (var17 + 1 + var15 * var5) + 1]);
var12.setX(this.points[2 * (var17 + (var15 + 1) * var5)]);
var12.setY(this.points[2 * (var17 + (var15 + 1) * var5) + 1]);
var13.setX(this.points[2 * (var17 + 1 + (var15 + 1) * var5)]);
var13.setY(this.points[2 * (var17 + 1 + (var15 + 1) * var5) + 1]);
float[] var19 = get01_ex_quad_Nation(var10, var11, var12, var13, var14, var4);
if (var19 != null) {
var19[0] = ((float)var17 + var19[0]) / (float)this.col;
var19[1] = ((float)var15 + var19[1]) / (float)this.row;
if (var3 == null) {
return var19;
}
float var22;
if (Float.isNaN(var7)) {
var7 = var19[0];
var8 = var19[1];
float var21 = var19[0];
var22 = var19[1];
boolean var23 = false;
var9 = (var3.getX() - var21) * (var3.getX() - var21) + (var3.getY() - var22) * (var3.getY() - var22);
} else {
var22 = var19[0];
float var25 = var19[1];
boolean var24 = false;
float var20 = (var3.getX() - var22) * (var3.getX() - var22) + (var3.getY() - var25) * (var3.getY() - var25);
if (var9 > var20) {
var7 = var19[0];
var8 = var19[1];
var9 = var20;
}
}
}
if (var17 == var18) {
break;
}
++var17;
}
}
if (var15 == var16) {
break;
}
++var15;
}
}
if (Float.isNaN(var7)) {
return null;
} else {
var4[0] = var7;
var4[1] = var8;
return var4;
}
}
}
public float[] get01_ex_quad_Nation(GVector2 var1, GVector2 var2, GVector2 var3, GVector2 var4, GVector2 var5, float[] var6) {
float b = 1.0E-6F;//常量
GVector2 var10 = var3.minus(var5);
GVector2 var11 = var3.minus(var1);
boolean var12 = false;
float var13 = var10.getX();
boolean var14 = false;
double var10000 = (double)var13;
var13 = var11.getY();
var14 = false;
var10000 *= (double)var13;
var13 = var10.getY();
var14 = false;
double var10001 = (double)var13;
var13 = var11.getX();
var14 = false;
double var7 = var10000 - var10001 * (double)var13;
GVector2 var38 = var3.minus(var5);
GVector2 var39 = var4.minus(var2);
var14 = false;
float var15 = var38.getX();
boolean var16 = false;
var10000 = (double)var15;
var15 = var39.getY();
var16 = false;
var10000 *= (double)var15;
var15 = var38.getY();
var16 = false;
var10001 = (double)var15;
var15 = var39.getX();
var16 = false;
var10000 -= var10001 * (double)var15;
var38 = var4.minus(var5);
var39 = var3.minus(var1);
var14 = false;
var15 = var38.getX();
var16 = false;
var10001 = (double)var15;
var15 = var39.getY();
var16 = false;
var10001 *= (double)var15;
var15 = var38.getY();
var16 = false;
double var10002 = (double)var15;
var15 = var39.getX();
var16 = false;
double var35 = var10000 + (var10001 - var10002 * (double)var15);
double var37 = var35 / 2.0;
GVector2 var44 = var4.minus(var5);
GVector2 var17 = var4.minus(var2);
boolean var18 = false;
float var19 = var44.getX();
boolean var20 = false;
var10000 = (double)var19;
var19 = var17.getY();
var20 = false;
var10000 *= (double)var19;
var19 = var44.getY();
var20 =
没有合适的资源?快使用搜索试试~ 我知道了~
数据处理包 用于数据集处理
共133个文件
java:122个
json:4个
png:2个
0 下载量 198 浏览量
2024-09-17
20:46:45
上传
评论
收藏 418KB RAR 举报
温馨提示
数据处理包 用于数据集处理
资源推荐
资源详情
资源评论
收起资源包目录
数据处理包 用于数据集处理 (133个子文件)
test0.cmo3 121KB
test0.cmo3 121KB
CGridTransform.java 29KB
RandomAccess.java 22KB
RandomAccess.java 22KB
WarpCoorType.java 21KB
Main.java 12KB
GraphTriangle.java 11KB
SectionTable.java 9KB
GridTransform.java 8KB
Tree.java 8KB
CoorUtil.java 7KB
ArchiveFormat.java 7KB
ArchiveFormat.java 7KB
Art_meshes.java 7KB
CubismModel.java 6KB
ArchiveReader.java 6KB
ArchiveReader.java 6KB
Table.java 5KB
ArtTransformation.java 5KB
TriangleGroup.java 4KB
MousePositionExample.java 4KB
JSONTreeInfo.java 4KB
DominatorTree.java 4KB
LiveVariableAnalysis.java 4KB
CubismDrawables.java 3KB
ControlTreeDemo.java 3KB
Count_info.java 3KB
DrawPartArt.java 3KB
JsonHandle.java 3KB
ArtMeshNode.java 3KB
RotationCoorType.java 3KB
Keyform_positions.java 3KB
Glue.java 3KB
JscrollPaneText.java 3KB
Deformers.java 3KB
TarjanSCC.java 3KB
Parameters.java 3KB
SectionOffsetTable.java 3KB
T1T2Analysis.java 3KB
Parts.java 3KB
CubismParameters.java 3KB
Triangle.java 3KB
Warp_deformers.java 3KB
Rotation_deformer_keyforms.java 2KB
ControlFlowGraph.java 2KB
Reader.java 2KB
Reader.java 2KB
PSDCreator.java 2KB
CodeCreate.java 2KB
Draw_order_groups.java 2KB
CubismDrawableView.java 2KB
StackCode.java 2KB
MousePosition.java 2KB
Uvs.java 2KB
Rotation_deformers.java 2KB
RandomAccessFileReader.java 2KB
RandomAccessFileReader.java 2KB
WarpNode.java 2KB
CubismMoc.java 2KB
InfoMoc.java 2KB
ArtFix.java 2KB
Position_indices.java 2KB
RotationNode.java 2KB
Writer.java 2KB
Writer.java 2KB
RandomAccessFileWriter.java 1KB
RandomAccessFileWriter.java 1KB
Live2DCubismCore.java 1KB
JBUTTON.java 1KB
Keyform_bindings.java 1KB
CompressOption.java 1KB
CompressOption.java 1KB
CubismParameterView.java 1KB
Art_mesh_keyforms.java 1KB
UnPack.java 1KB
Copy.java 1KB
Canvas_info.java 1KB
Keys.java 1KB
ScreenCoorType.java 1KB
Live2DCubismCoreJNI.java 1KB
Draw_order_group_objects.java 1KB
TreeNode.java 1KB
Warp_deformer_keyforms.java 1KB
MyFileChooser.java 1KB
Parameter_bindings.java 1KB
CubismCanvasInfo.java 972B
GRectD.java 882B
GRectF.java 870B
CubismPartView.java 834B
CubismCoreVersion.java 812B
LayerInfo.java 802B
CubismDrawableFlag.java 796B
Parameter_binding_indices.java 753B
CubismParts.java 717B
Fix.java 712B
Drawable_masks.java 704B
ImageUtil.java 677B
QueueTreeNode.java 657B
Glue_info.java 647B
共 133 条
- 1
- 2
资源评论
qq_52308245
- 粉丝: 148
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功