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 SbLine
getAxis()
Return the axis.float
getRadius()
Return the radius.float[]
getValue()
SbVec3f[]
intersect(SbLine l)
Intersect line and cylinder, returning true if there is an intersection.SbVec3f
intersectFirst(SbLine l)
Intersect line and cylinder, returning true if there is an intersection.void
setAxis(SbLine a)
Set the axis.void
setRadius(float r)
Set the radius.SbCylinder
setValue(float[] components)
SbCylinder
setValue(float[] components, int startIndex)
void
setValue(SbCylinder copyFrom)
void
setValue(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.
-
-