本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.getY()
方法的一些代码示例,展示了YoGraphicPosition.getY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicPosition.getY()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition
类名称:YoGraphicPosition
方法名:getY
暂无
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public double getY()
{
return this.getY();
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public void getPosition(Tuple3DBasics positionToPack)
{
positionToPack.setX(getX());
positionToPack.setY(getY());
if (z != null)
positionToPack.setZ(getZ());
else
positionToPack.setZ(0.0);
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public void getPosition(Point3d point3d)
{
point3d.setX(this.getX());
point3d.setY(this.getY());
if (this.z != null)
point3d.setZ(this.getZ());
else
point3d.setZ(0.0);
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public void getPosition(FramePoint framePoint)
{
framePoint.setX(this.getX());
framePoint.setY(this.getY());
if (this.z != null)
framePoint.setZ(this.getZ());
else
framePoint.setZ(0.0);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
@ContinuousIntegrationTest(estimatedDuration = 0.1)
@Test(timeout = 30000)
public void testVisualization()
{
YoGraphicsList dummyGraphicsList = new YoGraphicsList("DummyGraphics");
ArtifactList dummyArtifactList = new ArtifactList("DummyArtifacts");
copPointsInFoot.setupVisualizers(dummyGraphicsList, dummyArtifactList, 0.05);
assertEquals(dummyArtifactList.getArtifacts().size(), 10);
assertEquals(dummyGraphicsList.getYoGraphics().size(), 10);
copPointsInFoot.addWaypoint(CoPPointName.MIDFOOT_COP, 1.0, new FramePoint3D(footSpoof.getSoleFrame(), 1.0, 2.1, 3.1));
YoGraphicPosition graphic = (YoGraphicPosition) dummyGraphicsList.getYoGraphics().get(0);
assertEquals(1.0 - xToAnkle, graphic.getX(), 1e-5);
assertEquals(2.1 - yToAnkle, graphic.getY(), 1e-5);
assertEquals(3.1 - zToAnkle, graphic.getZ(), 1e-5);
}
内容来源于网络,如有侵权,请联系作者删除!