SbSphereIntersect Method (SbLine, SbVec3f, SbVec3f) |
Intersect line and sphere, returning true if there is an intersection. The line
is treated as a ray.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntaxpublic bool Intersect(
SbLine l,
out SbVec3f enter,
out SbVec3f exit
)
Public Function Intersect (
l As SbLine,
<OutAttribute> ByRef enter As SbVec3f,
<OutAttribute> ByRef exit As SbVec3f
) As Boolean
public:
bool Intersect(
SbLine l,
[OutAttribute] SbVec3f% enter,
[OutAttribute] SbVec3f% exit
)
member Intersect :
l : SbLine *
enter : SbVec3f byref *
exit : SbVec3f byref -> bool
Parameters
- l
- Type: OIV.InventorSbLine
Intersection line. - enter
- Type: OIV.InventorSbVec3f
Output parameter to store the first intersection found. - exit
- Type: OIV.InventorSbVec3f
Output parameter to store the last intersection found.
Return Value
Type:
Booleantrue if intersect,
false otherwise.
See Also