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