Line3D: Difference between revisions

From Crumbled World Wiki
(Created page with "{{:Line3DExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |Vec3 |startPos | |- |Vec3 |endPos | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Line3D(Vec3 startPos, Vec3 endPos) | |- |Line3D(Vec3 startPos, Vec3 atVec, float length) | |- |Line3D() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |length() |Returns the line length....")
 
(No difference)

Latest revision as of 13:36, 5 July 2025

Line3DExampleCode

Members

type variable description
Vec3 startPos
Vec3 endPos

Constructor

function description
Line3D(Vec3 startPos, Vec3 endPos)
Line3D(Vec3 startPos, Vec3 atVec, float length)
Line3D()

Functions

return function description
float length() Returns the line length.
float getDist() Returns the line length^2.
Vec3 getCenterPos() Returns the line center position.
setLine(Vec3 startPos, Vec3 endPos) set the line.
setLine(Line3D line) set the line.