Preparing search index...
The search index is not available
@vesoft-inc/veditor - v4.4.14
@vesoft-inc/veditor - v4.4.14
Utils
BezierLine
Class BezierLine
Hierarchy
BezierLine
Index
Constructors
constructor
Properties
lengths
v0
v1
v2
v3
Methods
get
Angle
get
Length
get
Lengths
get
Point
get
Spaced
Points
get
Uto
Tmapping
set
Control
Constructors
constructor
new
Bezier
Line
(
)
:
BezierLine
Returns
BezierLine
Properties
lengths
lengths
:
{
length
:
number
;
x
:
number
;
y
:
number
}
[]
= []
v0
v0
:
Vector2
v1
v1
:
Vector2
v2
v2
:
Vector2
v3
v3
:
Vector2
Methods
get
Angle
get
Angle
(
t
:
number
)
:
number
Parameters
t:
number
Returns
number
get
Length
get
Length
(
n
:
any
)
:
number
获取线总长度
Returns
Parameters
n:
any
Returns
number
get
Lengths
get
Lengths
(
n
?:
number
)
:
BezierLine
返回缓存长度数组
Returns
Parameters
n:
number
= 100
分割点的个数
Returns
BezierLine
get
Point
get
Point
(
t
:
number
)
:
Vector2
Parameters
t:
number
Returns
Vector2
get
Spaced
Points
get
Spaced
Points
(
n
:
number
)
:
Vector2
[]
Returns
Parameters
n:
number
指定点的个数
Returns
Vector2
[]
get
Uto
Tmapping
get
Uto
Tmapping
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
set
Control
set
Control
(
v0
:
Vector2
, v1
:
Vector2
, v2
:
Vector2
, v3
:
Vector2
)
:
void
Parameters
v0:
Vector2
v1:
Vector2
v2:
Vector2
v3:
Vector2
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@vesoft-
inc/veditor -
v4.4.14
Anchor
Line
Controller
Default
Line
Default
Node
Event
Graph
History
Line
Minimap
Node
Schema
Utils
Vector2
dom
Bezier
Line
constructor
lengths
v0
v1
v2
v3
get
Angle
get
Length
get
Lengths
get
Point
get
Spaced
Points
get
Uto
Tmapping
set
Control
Generated using
TypeDoc
获取线总长度
Returns