本文整理汇总了Java中javafx.scene.transform.Transform.getMyy方法的典型用法代码示例。如果您正苦于以下问题:Java Transform.getMyy方法的具体用法?Java Transform.getMyy怎么用?Java Transform.getMyy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.transform.Transform
的用法示例。
在下文中一共展示了Transform.getMyy方法的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: yawCamera
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
@Override
public void yawCamera(double radians) {
// Get the y direction of the camera's current heading
Transform worldTransform = xform.getLocalToSceneTransform();
double yx = worldTransform.getMyx();
double yy = worldTransform.getMyy();
double yz = worldTransform.getMyz();
Point3D yDir = new Point3D(yx, yy, yz).normalize();
// Create a new rotation along that axis and apply it to the camera
Rotate rotation = new Rotate(radians * 180 / Math.PI, yDir);
affine.append(rotation);
}
示例3: 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}
};
}
示例4: getScaleY
import javafx.scene.transform.Transform; //导入方法依赖的package包/类
/**
* Returns the Y scale of the matrix.
*
* @param matrix
* matrix to extract the y scale from
* @return the y-scale of the matrix
*/
public static double getScaleY(Transform matrix) {
// [ xx xy xz tx ] = [ Sx*c -Sy*s ... tx ]
// [ yx yy yz ty ] [ Sx*s Sy*c ... ty ]
// [ zx zy zz tz ] [ ... ... ... tz ]
// [ 0 0 0 1 ] [ 0 0 0 1 ]
double theta = Math.toRadians(getRotation(matrix));
return matrix.getMyy() / Math.cos(theta);
}