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

LineCurve/LineCurve3: Override getTangent() and getTangentAt(). #25544

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

ycw
Copy link
Contributor

@ycw ycw commented Feb 21, 2023

LineCurve's unit tangent is always "norm(line.v2-line.v1)", the parametric terms aren't involved

this PR

  • overrides getTangentAt to skip UtoTmapping procedure; and
  • use _t in getTangent ...to reflect its an unused param

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 22, 2023

use _t in getTangent ...to reflect its an unused param

Do you mind reverting this change? This is no part of our code style and proper editors/IDEs gray out unused parameters. I don't think an explicit syntax is needed.

@Mugen87 Mugen87 changed the title Override LineCurve .getTangent and .getTangentAt LineCurve/LineCurve3: Override getTangent() and getTangentAt(). Feb 22, 2023
@Mugen87 Mugen87 added this to the r150 milestone Feb 22, 2023
@mrdoob mrdoob merged commit f07b139 into mrdoob:dev Feb 23, 2023
@ycw ycw deleted the linecurve-tangent branch February 24, 2023 07:56
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

Successfully merging this pull request may close these issues.

3 participants