gpt4 book ai didi

us.ihmc.yoVariables.variable.YoFrameQuaternion.getYoQy()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 07:46:49 27 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.yoVariables.variable.YoFrameQuaternion.getYoQy()方法的一些代码示例,展示了YoFrameQuaternion.getYoQy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameQuaternion.getYoQy()方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFrameQuaternion
类名称:YoFrameQuaternion
方法名:getYoQy

YoFrameQuaternion.getYoQy介绍

[英]Gets the internal reference to the y-component used for this quaternion.
[中]获取用于此四元数的y分量的内部引用。

代码示例

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Gets the internal reference to the y-component used for the orientation of this pose.
* 
* @return the position y-coordinate as {@code YoVariable}.
*/
public YoDouble getYoQy()
{
 return orientation.getYoQy();
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public YoVariable<?>[] getVariables()
{
 YoVariable<?>[] vars = new YoVariable[isUsingYawPitchRoll() ? 6 : 7];
 int i = 0;
 vars[i++] = yoFramePoint.getYoX();
 vars[i++] = yoFramePoint.getYoY();
 vars[i++] = yoFramePoint.getYoZ();
 if (isUsingYawPitchRoll())
 {
   vars[i++] = yoFrameYawPitchRoll.getYaw();
   vars[i++] = yoFrameYawPitchRoll.getPitch();
   vars[i++] = yoFrameYawPitchRoll.getRoll();
 }
 else
 {
   vars[i++] = yoFrameQuaternion.getYoQx();
   vars[i++] = yoFrameQuaternion.getYoQy();
   vars[i++] = yoFrameQuaternion.getYoQz();
   vars[i++] = yoFrameQuaternion.getYoQs();
 }
 return vars;
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

@Override
public YoDouble[] getVariables()
{
 YoDouble[] vars = new YoDouble[isUsingYawPitchRoll() ? 6 : 7];
 int i = 0;
 vars[i++] = position.getYoX();
 vars[i++] = position.getYoY();
 vars[i++] = position.getYoZ();
 if (isUsingYawPitchRoll())
 {
   vars[i++] = yawPitchRoll.getYaw();
   vars[i++] = yawPitchRoll.getPitch();
   vars[i++] = yawPitchRoll.getRoll();
 }
 else
 {
   vars[i++] = quaternion.getYoQx();
   vars[i++] = quaternion.getYoQy();
   vars[i++] = quaternion.getYoQz();
   vars[i++] = quaternion.getYoQs();
 }
 return vars;
}

代码示例来源:origin: us.ihmc/ihmc-yovariables

/**
* Creates a copy of {@code this} by finding the duplicated {@code YoVariable}s in the given
* {@link YoVariableRegistry}.
* <p>
* This method does not duplicate {@code YoVariable}s. Assuming the given registry is a duplicate
* of the registry that was used to create {@code this}, this method searches for the duplicated
* {@code YoVariable}s and use them to duplicate {@code this}.
* </p>
*
* @param newRegistry YoVariableRegistry to duplicate {@code this} to.
* @return the duplicate of {@code this}.
*/
public YoFrameQuaternion duplicate(YoVariableRegistry newRegistry)
{
 YoDouble x = (YoDouble) newRegistry.getVariable(getYoQx().getFullNameWithNameSpace());
 YoDouble y = (YoDouble) newRegistry.getVariable(getYoQy().getFullNameWithNameSpace());
 YoDouble z = (YoDouble) newRegistry.getVariable(getYoQz().getFullNameWithNameSpace());
 YoDouble s = (YoDouble) newRegistry.getVariable(getYoQs().getFullNameWithNameSpace());
 return new YoFrameQuaternion(x, y, z, s, getReferenceFrame());
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com