congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CylinderGraphics3DInstruction.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
us.ihmc.graphicsDescription.instructions.CylinderGraphics3DInstruction
constructor

Best Java code snippets using us.ihmc.graphicsDescription.instructions.CylinderGraphics3DInstruction.<init> (Showing top 2 results out of 315)

origin: us.ihmc/ihmc-graphics-description

/**
* Adds a soild cylinder with the given radius, height and appearance centered on the origin of the current coordinate system.
* </ br></ br>
* The image below demonstrates a maroon cylinder with radius of 0.3 and a height of 0.1 as described by the following code:<br /><br />
* {@code linkGraphics.addCoordinateSystem(0.5);}<br />
* {@code linkGraphics.addCylinder(0.1, 0.3, YoAppearance.Maroon());}<br /><br />
*
* As is show by the graphical representation the cylinder is centered on the coordinate system.
* Again, x, y and z are red, white and blue.
* <br /><br /><img src="doc-files/LinkGraphics.addCylinder2.jpg">
*
* @param height cylinder height in meters.
* @param radius cylinder radius in meters.
* @param cylApp Appearance to be used with the new cylinder.  See {@link YoAppearance YoAppearance} for implementations.
*/
public CylinderGraphics3DInstruction addCylinder(double height, double radius, AppearanceDefinition cylApp)
{
 CylinderGraphics3DInstruction cylinderInstruction = new CylinderGraphics3DInstruction(radius, height, RESOLUTION);
 cylinderInstruction.setAppearance(cylApp);
 graphics3DInstructions.add(cylinderInstruction);
 return cylinderInstruction;
}
origin: us.ihmc/IHMCGraphicsDescription

/**
* Adds a soild cylinder with the given radius, height and appearance centered on the origin of the current coordinate system.
* </ br></ br>
* The image below demonstrates a maroon cylinder with radius of 0.3 and a height of 0.1 as described by the following code:<br /><br />
* {@code linkGraphics.addCoordinateSystem(0.5);}<br />
* {@code linkGraphics.addCylinder(0.1, 0.3, YoAppearance.Maroon());}<br /><br />
*
* As is show by the graphical representation the cylinder is centered on the coordinate system.
* Again, x, y and z are red, white and blue.
* <br /><br /><img src="doc-files/LinkGraphics.addCylinder2.jpg">
*
* @param height cylinder height in meters.
* @param radius cylinder radius in meters.
* @param cylApp Appearance to be used with the new cylinder.  See {@link YoAppearance YoAppearance} for implementations.
*/
public CylinderGraphics3DInstruction addCylinder(double height, double radius, AppearanceDefinition cylApp)
{
 CylinderGraphics3DInstruction cylinderInstruction = new CylinderGraphics3DInstruction(radius, height, RESOLUTION);
 cylinderInstruction.setAppearance(cylApp);
 graphics3DInstructions.add(cylinderInstruction);
 return cylinderInstruction;
}
us.ihmc.graphicsDescription.instructionsCylinderGraphics3DInstruction<init>

Popular methods of CylinderGraphics3DInstruction

  • getAppearance
  • getHeight
  • getRadius
  • getResolution
  • setAppearance

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now