public class SbSphere extends SbBasic
Modifier and Type | Field and Description |
---|---|
float[] |
array |
Constructor and Description |
---|
SbSphere()
Default constructor.
|
SbSphere(float[] components) |
SbSphere(SbSphere copyFrom) |
SbSphere(SbVec3f c,
float r)
Constructor that takes a center and a radius.
|
Modifier and Type | Method and Description |
---|---|
void |
circumscribe(SbBox3f box)
Return a sphere containing a given box.
|
SbVec3f |
getCenter()
Return the center.
|
float |
getRadius()
Return the radius.
|
float[] |
getValue() |
SbVec3f[] |
intersect(SbLine l)
Intersect line and sphere, returning true if there is an intersection.
|
SbVec3f |
intersectFirst(SbLine l)
Intersect line and sphere, returning true if there is an intersection.
|
void |
setCenter(SbVec3f c)
Set the center.
|
void |
setRadius(float r)
Set the radius.
|
SbSphere |
setValue(float[] components) |
SbSphere |
setValue(float[] components,
int startIndex) |
void |
setValue(SbSphere copyFrom) |
void |
setValue(SbVec3f c,
float r)
Change the center and radius.
|
static SbSphere[] |
toArray(long nativeArray,
long length) |
public SbSphere(SbSphere copyFrom)
public SbSphere(float[] components)
public SbSphere(SbVec3f c, float r)
public SbSphere()
public float[] getValue()
public SbSphere setValue(float[] components, int startIndex)
public void setValue(SbSphere copyFrom)
public SbSphere setValue(float[] components)
public static SbSphere[] toArray(long nativeArray, long length)
public SbVec3f[] intersect(SbLine l)
public void setRadius(float r)
public void setValue(SbVec3f c, float r)
public void setCenter(SbVec3f c)
public void circumscribe(SbBox3f box)
public SbVec3f intersectFirst(SbLine l)
public SbVec3f getCenter()
public float getRadius()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com