openrndr
0.4.5-dev.64+2ea7a58
common
openrndr-shape
/
org.openrndr.shape
/
Segment1D
Segment1D
@
Serializable
@
JvmRecord
data
class
Segment1D
(
val
start
:
Double
,
val
control
:
Array
<
Double
>
,
val
end
:
Double
)
:
LinearType
<
Segment1D
>
(
source
)
Members
Constructors
Segment1D
Link copied to clipboard
constructor
(
start
:
Double
,
control
:
Array
<
Double
>
,
end
:
Double
)
Functions
adaptive
Positions
Link copied to clipboard
fun
adaptivePositions
(
distanceTolerance
:
Double
=
25.0
)
:
List
<
Double
>
adaptive
Positions
With
T
Link copied to clipboard
fun
adaptivePositionsWithT
(
distanceTolerance
:
Double
=
25.0
)
:
List
<
Pair
<
Double
,
Double
>
>
div
Link copied to clipboard
open
operator override
fun
div
(
scale
:
Double
)
:
Segment1D
equidistant
Positions
Link copied to clipboard
fun
equidistantPositions
(
pointCount
:
Int
,
distanceTolerance
:
Double
=
0.5
)
:
List
<
Double
>
minus
Link copied to clipboard
open
operator override
fun
minus
(
right
:
Segment1D
)
:
Segment1D
plus
Link copied to clipboard
open
operator override
fun
plus
(
right
:
Segment1D
)
:
Segment1D
position
Link copied to clipboard
fun
position
(
ut
:
Double
)
:
Double
split
Link copied to clipboard
fun
split
(
t
:
Double
)
:
Array
<
Segment1D
>
sub
Link copied to clipboard
fun
sub
(
t0
:
Double
,
t1
:
Double
)
:
Segment1D
times
Link copied to clipboard
open
operator override
fun
times
(
scale
:
Double
)
:
Segment1D
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Properties
control
Link copied to clipboard
val
control
:
Array
<
Double
>
cubic
Link copied to clipboard
val
cubic
:
Segment1D
end
Link copied to clipboard
val
end
:
Double
linear
Link copied to clipboard
val
linear
:
Boolean
control points, zero-length iff the segment is linear
quadratic
Link copied to clipboard
val
quadratic
:
Segment1D
reverse
Link copied to clipboard
val
reverse
:
Segment1D
start
Link copied to clipboard
val
start
:
Double