toggle menu
Cuttlefish Documentation
Cuttlefish
switch theme
search in API
Cuttlefish
/
com.roboctopi.cuttlefish.utils
/
Line
Line
class
Line
(
var
px
:
Double
,
var
py
:
Double
,
var
vx
:
Double
,
var
vy
:
Double
)
Members
Constructors
Line
Link copied to clipboard
constructor
(
px
:
Double
,
py
:
Double
,
vx
:
Double
,
vy
:
Double
)
Properties
px
Link copied to clipboard
var
px
:
Double
py
Link copied to clipboard
var
py
:
Double
vx
Link copied to clipboard
var
vx
:
Double
vy
Link copied to clipboard
var
vy
:
Double
Functions
clone
Link copied to clipboard
fun
clone
(
)
:
Line
get
Dist
Link copied to clipboard
fun
getDist
(
position
:
Pose
)
:
Double
get
Para
Dist
Link copied to clipboard
fun
getParaDist
(
)
:
Double
get
Para
Vec
Link copied to clipboard
fun
getParaVec
(
)
:
Pose
get
Perp
Dist
Link copied to clipboard
fun
getPerpDist
(
)
:
Double
get
Perp
Vec
Link copied to clipboard
fun
getPerpVec
(
)
:
Pose
get
Position
Link copied to clipboard
fun
getPosition
(
t
:
Double
)
:
Pose
get
Relative
Coords
Link copied to clipboard
fun
getRelativeCoords
(
origin
:
Pose
)
:
Pose
length
Link copied to clipboard
fun
length
(
)
:
Double
normalize
Link copied to clipboard
fun
normalize
(
)
set
Origin
Link copied to clipboard
fun
setOrigin
(
origin
:
Pose
)
subtract
Link copied to clipboard
fun
subtract
(
origin
:
Pose
)