us.ihmc.yoVariables.variable.YoFrameLine2D.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(95)

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

YoFrameLine2D.<init>介绍

[英]Creates a new YoFrameLine2D.
[中]创建一个新的YoFrameLine2D。

代码示例

代码示例来源: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/simulation-construction-set-test

lineSegment.getYoSecondEndpointY().set(2.0);
YoFrameLine2D line = new YoFrameLine2D("line", "", ReferenceFrame.getWorldFrame(), registry);
line.getYoPointX().set(-1.0);
line.getYoPointY().set(1.0);

相关文章