gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 23:52:49 25 4
gpt4 key购买 nike

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

YoFramePoint2D.duplicate介绍

[英]Creates a copy of this by finding the duplicated YoVariables in the given YoVariableRegistry.

This method does not duplicate YoVariables. Assuming the given registry is a duplicate of the registry that was used to create this, this method searches for the duplicated YoVariables and use them to duplicate this.
[中]通过在给定的YoVariableRegistry中查找重复的YoVariables来创建此文件的副本。
此方法不复制变量。假设给定的注册表是用于创建此注册表的注册表的副本,此方法将搜索复制的变量,并使用它们来复制此变量。

代码示例

代码示例来源: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 YoFrameLineSegment2D duplicate(YoVariableRegistry newRegistry)
{
 return new YoFrameLineSegment2D(firstEndpoint.duplicate(newRegistry), secondEndpoint.duplicate(newRegistry));
}

代码示例来源: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 YoFrameConvexPolygon2D duplicate(YoVariableRegistry newRegistry)
{
 YoInteger yoNumberOfVertices = (YoInteger) newRegistry.getVariable(numberOfVertices.getFullNameWithNameSpace());
 List<YoFramePoint2D> yoVertexBuffer = new ArrayList<>();
 for (int i = 0; i < vertexBuffer.size(); i++)
   yoVertexBuffer.add(vertexBuffer.get(i).duplicate(newRegistry));
 return new YoFrameConvexPolygon2D(yoVertexBuffer, yoNumberOfVertices, referenceFrame);
}

代码示例来源: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 YoFrameLine2D duplicate(YoVariableRegistry newRegistry)
{
 return new YoFrameLine2D(point.duplicate(newRegistry), direction.duplicate(newRegistry));
}

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

@Override
  public YoArtifact duplicate(YoVariableRegistry newRegistry)
  {
   return new YoArtifactPosition(getName(), point.duplicate(newRegistry), graphicType, color, radii.getX());
  }
}

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

@Override
  public YoArtifact duplicate(YoVariableRegistry newRegistry)
  {
   return new YoArtifactOval(getName(), center.duplicate(newRegistry), radii.duplicate(newRegistry), color);
  }
}

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