KSLCore
Toggle table of contents
R1.4
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
KSLCore
KSLCore
/
ksl.animation
/
SpatialSpaceDescriptor
/
Grid
Grid
@
Serializable
@
SerialName
(
value
=
"Grid"
)
data
class
Grid
(
val
name
:
String
,
val
cols
:
Int
,
val
rows
:
Int
,
val
cellSize
:
Double
,
val
originX
:
Double
=
0.0
,
val
originY
:
Double
=
0.0
,
val
torus
:
Boolean
=
false
)
:
SpatialSpaceDescriptor
(
source
)
A rectangular grid space.
torus
wraps motion at the edges.
Members
Constructors
Grid
Link copied to clipboard
constructor
(
name
:
String
,
cols
:
Int
,
rows
:
Int
,
cellSize
:
Double
,
originX
:
Double
=
0.0
,
originY
:
Double
=
0.0
,
torus
:
Boolean
=
false
)
Properties
cell
Size
Link copied to clipboard
val
cellSize
:
Double
cols
Link copied to clipboard
val
cols
:
Int
name
Link copied to clipboard
open
override
val
name
:
String
origin
X
Link copied to clipboard
val
originX
:
Double
origin
Y
Link copied to clipboard
val
originY
:
Double
rows
Link copied to clipboard
val
rows
:
Int
torus
Link copied to clipboard
val
torus
:
Boolean