Package com.openinventor.inventor
Class SbCylinder
- java.lang.Object
-
- com.openinventor.inventor.SbBasic
-
- com.openinventor.inventor.SbCylinder
-
-
Field Summary
Fields Modifier and Type Field Description float[]array
-
Constructor Summary
Constructors Constructor Description SbCylinder()Default constructor.SbCylinder(float[] components)SbCylinder(SbCylinder copyFrom)SbCylinder(SbLine a, float r)Constructor that takes an axis and radius.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SbLinegetAxis()Return the axis.floatgetRadius()Return the radius.float[]getValue()SbVec3f[]intersect(SbLine l)Intersect line and cylinder, returning true if there is an intersection.SbVec3fintersectFirst(SbLine l)Intersect line and cylinder, returning true if there is an intersection.voidsetAxis(SbLine a)Set the axis.voidsetRadius(float r)Set the radius.SbCylindersetValue(float[] components)SbCylindersetValue(float[] components, int startIndex)voidsetValue(SbCylinder copyFrom)voidsetValue(SbLine a, float r)Change the axis and radius.static SbCylinder[]toArray(long nativeArray, long length)
-
-
-
Constructor Detail
-
SbCylinder
public SbCylinder(float[] components)
-
SbCylinder
public SbCylinder(SbCylinder copyFrom)
-
SbCylinder
public SbCylinder(SbLine a, float r)
Constructor that takes an axis and radius.
-
SbCylinder
public SbCylinder()
Default constructor. The cylinder is oriented along the Y axis and has a radius of 1.
-
-
Method Detail
-
setValue
public SbCylinder setValue(float[] components)
-
getValue
public float[] getValue()
-
setValue
public SbCylinder setValue(float[] components, int startIndex)
-
setValue
public void setValue(SbCylinder copyFrom)
-
setRadius
public void setRadius(float r)
Set the radius.
-
toArray
public static SbCylinder[] toArray(long nativeArray, long length)
-
getAxis
public SbLine getAxis()
Return the axis.
-
setAxis
public void setAxis(SbLine a)
Set the axis.
-
setValue
public void setValue(SbLine a, float r)
Change the axis and radius.
-
intersectFirst
public SbVec3f intersectFirst(SbLine l)
Intersect line and cylinder, returning true if there is an intersection.
-
intersect
public SbVec3f[] intersect(SbLine l)
Intersect line and cylinder, returning true if there is an intersection.
-
getRadius
public float getRadius()
Return the radius.
-
-