toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom.trapezoid
/
MSegmentInt
MSegment
Int
data
class
MSegmentInt
(
var
x0
:
Int
,
var
y0
:
Int
,
var
x1
:
Int
,
var
y1
:
Int
)
:
ISegmentInt
Members
Constructors
MSegment
Int
Link copied to clipboard
constructor
(
)
constructor
(
x0
:
Int
,
y0
:
Int
,
x1
:
Int
,
y1
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
dx
Link copied to clipboard
val
dx
:
Int
dy
Link copied to clipboard
val
dy
:
Int
islope
Link copied to clipboard
val
islope
:
Double
slope
Link copied to clipboard
val
slope
:
Double
x0
Link copied to clipboard
open
override
var
x0
:
Int
x1
Link copied to clipboard
open
override
var
x1
:
Int
x
Max
Link copied to clipboard
val
xMax
:
Int
x
Min
Link copied to clipboard
val
xMin
:
Int
y0
Link copied to clipboard
open
override
var
y0
:
Int
y1
Link copied to clipboard
open
override
var
y1
:
Int
y
Max
Link copied to clipboard
val
yMax
:
Int
y
Min
Link copied to clipboard
val
yMin
:
Int
Functions
contains
X
Link copied to clipboard
fun
containsX
(
x
:
Int
)
:
Boolean
contains
Y
Link copied to clipboard
fun
containsY
(
y
:
Int
)
:
Boolean
get
Intersect
Y
Link copied to clipboard
fun
getIntersectY
(
other
:
MSegmentInt
)
:
Int
set
To
Link copied to clipboard
fun
setTo
(
x0
:
Int
,
y0
:
Int
,
x1
:
Int
,
y1
:
Int
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
x
Link copied to clipboard
fun
x
(
y
:
Int
)
:
Int
y
Link copied to clipboard
fun
y
(
x
:
Int
)
:
Int