Skip to content

[疑问]为什么setPath方法还要调用quadTo? #4

@OumaSyuu

Description

@OumaSyuu

在setPath中,代码已经建立了一条对于宽度width的水平周期函数线(y = (int) (a * Math.sin((i * w + fai) * Math.PI / 180) + k);)了,为什么还要用path的quadTo方法呢?

PS:什么不直接用quadTo呢?获取到的width可能是几百甚至上千啊,遍历那么多次,个人感觉不是很好......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions