SBLINE(3iv)
π SbLine π
okay bestie, so this is SbLine(3IV) β the manual page for a directed line in 3D, and honestly? she's a legend. lowkey the blueprint. β¨
πΈ NAME πΈ
SbLine β directed line in 3D π
π¦ INHERITS FROM π¦
SbLine
(yes she inherits from herself, no cap, that's literally what it says, moving on π«Ά)
β¨ SYNOPSIS β¨
#include <Inventor/SbLinear.h>
Methods from class SbLine:
SbLine()
SbLine(const SbVec3f &p0, const SbVec3f &p1)
void setValue(const SbVec3f &p0, const SbVec3f &p1)
SbBool getClosestPoints(const SbLine &line2, SbVec3f
&ptOnThis, SbVec3f &ptOnLine2 ) const
SbVec3f getClosestPoint(const SbVec3f &point) const
const SbVec3f & getPosition() const
const SbVec3f & getDirection() const
π DESCRIPTION π
So. Represents a directed line in 3D. It's a basic Inventor datatype, and it's the one doing the heavy lifting whenever somebody needs a 3D line to exist. She's input and output for a whole bunch of Inventor classes β like, she gets passed around constantly. main character energy fr fr π
π METHODS π
β Constructors β
SbLine()
SbLine(const SbVec3f &p0, const SbVec3f &p1)
Constructors, bestie. Now listen β if you wanna build a line out of a position and a direction, you do it like this:
SbLine(p0, p0 + dir)
that's the move. π«Ά and the line is directed from p0 to p1, so direction matters, okay? don't be out here pretending it's just a vibe. π
π« void setValue(const SbVec3f &p0, const SbVec3f &p1)
Sets the line to pass through points p0 and p1. that's it, that's the whole job. slay β¨
π§ SbBool getClosestPoints(const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2 ) const
Finds the two closest points between this line and line2, and loads them into ptOnThis and ptOnLine2. π
β οΈ heads up bestie: it returnsFALSEif the lines are parallel β and in that case the results are undefined, so do NOT go trusting those values. If they're not parallel it returnsTRUE. periodt. π
π SbVec3f getClosestPoint(const SbVec3f &point) const
Returns the closest point on the line to the given point. she finds it. every time. no cap. π₯
π const SbVec3f & getPosition() const and const SbVec3f & getDirection() const
Returns the position of the line origin point and the direction vector of the line. two lil getters, both iconic, both const. π
π SEE ALSO π
SbVec3f, SbPlane
and that's the whole page, bestie!! π this was SbLine(3IV) β and lmaooo the footer is just SbLine(3IV)() with the version and date slots sitting there completely empty, like nobody filled them in. iconic behaviour honestly. go forth and draw ur directed lines. π¦β¨π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms