Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform NurbsCurve (Rotate) #57

Open
RafaelScharf opened this issue Sep 17, 2021 · 0 comments
Open

Transform NurbsCurve (Rotate) #57

RafaelScharf opened this issue Sep 17, 2021 · 0 comments

Comments

@RafaelScharf
Copy link

RafaelScharf commented Sep 17, 2021

I need to rotate Nurbs Curve, I tried using the .transform method to change rotate using matrix but to no avail.

Look at my code

    `
    let cNurbsW = new verb.geom.NurbsCurve(arrayCurvesWidth[0]);
      let tempAngle = MathUtils.degToRad(45)
      cNurbsW.transform(
          [
              [Math.cos(tempAngle), -Math.sin(tempAngle), 0, 0],
              [Math.sin(tempAngle), Math.cos(tempAngle), 0, 0],
              [0, 0, 1, 0],
              [0, 0, 0, 1]
          ]
      )
    `

How to i rotate my NubsCurve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant