public class SbLine extends SbBasic
Modifier and Type | Field and Description |
---|---|
float[] |
array |
Constructor and Description |
---|
SbLine()
Default constructor.
|
SbLine(float[] components) |
SbLine(SbLine copyFrom) |
SbLine(SbVec3f p0,
SbVec3f p1)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbVec3f |
getClosestPoint(SbVec3f point)
Returns the closest point on the line to the given point.
|
SbVec3f[] |
getClosestPoints(SbLine line2)
Finds the two closest points between this line and line2, and loads them into ptOnThis and ptOnLine2.
|
SbVec3f |
getDirection()
Returns direction vector of line.
|
SbVec3f |
getPosition()
Returns position of line origin point.
|
float[] |
getValue() |
static void |
setIntersectEpsilon(float epsilon)
Setup epsilon to detect intersection of very small geometry.
|
void |
setPosDir(SbVec3f position,
SbVec3f direction)
Sets line using a position and a direction vector.
|
SbLine |
setValue(float[] components) |
SbLine |
setValue(float[] components,
int startIndex) |
void |
setValue(SbLine copyFrom) |
void |
setValue(SbLined line)
Sets line from a double precision line.
|
void |
setValue(SbVec3f p0,
SbVec3f p1)
Sets line to pass through points p0 and p1.
|
static SbLine[] |
toArray(long nativeArray,
long length) |
public SbLine(float[] components)
public SbLine(SbLine copyFrom)
public SbLine(SbVec3f p0, SbVec3f p1)
SbLine
(p0, p0 + dir), but using the default constructor followed by the setPosDir()
method is recommended to avoid floating point precision problems.public SbLine()
public SbLine setValue(float[] components)
public float[] getValue()
public void setValue(SbLine copyFrom)
public SbLine setValue(float[] components, int startIndex)
public SbVec3f getClosestPoint(SbVec3f point)
public static SbLine[] toArray(long nativeArray, long length)
public SbVec3f[] getClosestPoints(SbLine line2)
public void setValue(SbLined line)
public static void setIntersectEpsilon(float epsilon)
public void setPosDir(SbVec3f position, SbVec3f direction)
public SbVec3f getPosition()
public SbVec3f getDirection()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com