本文整理了Java中us.ihmc.yoVariables.variable.YoFrameLine2D
类的一些代码示例,展示了YoFrameLine2D
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameLine2D
类的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFrameLine2D
类名称:YoFrameLine2D
[英]FixedFrameLine2DBasics implementation which point and line are baked with YoVariables.
[中]FixedFrameLine2DBasics实现,该实现使用变量烘焙点和线。
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public YoArtifactLine2d(String name, YoFrameLine2D yoFrameLine2d, Color color)
{
super(name, new double[0], color, yoFrameLine2d.getYoPointX(), yoFrameLine2d.getYoPointY(), yoFrameLine2d.getYoDirectionX(),
yoFrameLine2d.getYoDirectionY());
this.yoFrameLine2d = yoFrameLine2d;
}
代码示例来源:origin: us.ihmc/ihmc-yovariables
/**
* Provides a {@code String} representation of this line as follows:<br>
* Line 2D: point = (x, y), direction = (x, y)-worldFrame
*
* @return the {@code String} representing this line.
*/
@Override
public String toString()
{
return EuclidGeometryIOTools.getLine2DString(this) + "-" + getReferenceFrame();
}
}
代码示例来源: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 YoArtifactLine2d duplicate(YoVariableRegistry newRegistry)
{
return new YoArtifactLine2d(getName(), yoFrameLine2d.duplicate(newRegistry), color);
}
}
代码示例来源: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);
line.getYoDirectionX().set(-0.5);
line.getYoDirectionY().set(1.0);
内容来源于网络,如有侵权,请联系作者删除!