本文整理汇总了Java中javafx.scene.transform.Transform.getMxy方法的典型用法代码示例。如果您正苦于以下问题:Java Transform.getMxy方法的具体用法?Java Transform.getMxy怎么用?Java Transform.getMxy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.transform.Transform
的用法示例。
在下文中一共展示了Transform.getMxy方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isTransformsEqual
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
private boolean isTransformsEqual(Transform first, Transform second)
{
return first.getMxx() == second.getMxx() &&
first.getMxy() == second.getMxy() &&
first.getMxz() == second.getMxz() &&
first.getMyx() == second.getMyx() &&
first.getMyy() == second.getMyy() &&
first.getMyz() == second.getMyz() &&
first.getMzx() == second.getMzx() &&
first.getMzy() == second.getMzy() &&
first.getMzz() == second.getMzz() &&
first.getTx() == second.getTx() &&
first.getTy() == second.getTy() &&
first.getTz() == second.getTz();
}
示例2: pitchCamera
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
@Override
public void pitchCamera(double radians) {
// Get the x direction for the camera's current heading
Transform worldTransform = xform.getLocalToSceneTransform();
double xx = worldTransform.getMxx();
double xy = worldTransform.getMxy();
double xz = worldTransform.getMxz();
Point3D xDir = new Point3D(xx, xy, xz).normalize();
// Create a new rotation along that axis and apply it to the camera
Rotate rotation = new Rotate(radians * 180 / Math.PI, xDir);
affine.append(rotation);
}
示例3: strafeCamera
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
@Override
public void strafeCamera(double distance) {
Transform worldTransform = xform.getLocalToSceneTransform();
double xx = worldTransform.getMxx();
double xy = worldTransform.getMxy();
double xz = worldTransform.getMxz();
Point3D xDir = new Point3D(xx, xy, xz).normalize();
Point3D moveVec = xDir.multiply(distance);
affine.appendTranslation(moveVec.getX(), moveVec.getY(),
moveVec.getZ());
}
示例4: TransformMatrix
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
public TransformMatrix(Transform transform) {
matrix = new double[][]{
{transform.getMxx(), transform.getMxy(), transform.getMxz(), transform.getTx()},
{transform.getMyx(), transform.getMyy(), transform.getMyz(), transform.getTy()},
{transform.getMzx(), transform.getMzy(), transform.getMzz(), transform.getTz()},
{0.0, 0.0, 0.0, 1}
};
}