s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Common Structs
Line
chevron_left
Common Structs
struct
Line
search
Constructors
functions
Line
Properties
data_object
Center
data_object
Delta
data_object
End
data_object
Start
Methods
functions
ClosestPoint
functions
Distance
functions
SqrDistance
functions
Trace
Line
Represents a line in 3D space.
struct
sealed
Sandbox.System
build
Constructors
1
Line
(
a
,
b
)
data_object
Properties
4
Center
Vector3
Returns the midpoint between a and b
Delta
Vector3
Returns the result of b - a
End
Vector3
End position of the line.
Start
Vector3
Start position of the line.
functions
Methods
4
ClosestPoint
(
pos
)
Vector3
Returns closest point on this line to the given point.
Distance
(
pos
)
float
Returns closest distance from this line to given point.
SqrDistance
(
pos
)
float
Returns closest squared distance from this line to given point.
Trace
(
ray
,
radius
,
maxDistance
)
bool
Perform a "trace" between this line and given ray. If the 2 lines intersect, returns true.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.