Skip to content

Deprecate LSL vector and quaternion functions#75

Open
tapple wants to merge 3 commits intosecondlife:mainfrom
tapple:deprecate-vector
Open

Deprecate LSL vector and quaternion functions#75
tapple wants to merge 3 commits intosecondlife:mainfrom
tapple:deprecate-vector

Conversation

@tapple
Copy link
Contributor

@tapple tapple commented Mar 13, 2026

I don't quite like the replacement as much, mostly because it's longer to type. This might be better once they are methods: https://feedback.secondlife.com/slua-alpha/p/vector-type-should-behave-like-an-object . Although then we'd lose fastcall (Edit: apparently quaternion isn't fastcall anyway)

  • ll.Rot2Fwd
  • ll.Rot2Left
  • ll.Rot2Up
  • ll.VecDist
  • ll.VecMag
  • ll.VecNorm

Rot2Up: (Rotation: quaternion) -> vector,
Rot2Fwd: @[deprecated {use='quaternion.tofwd', reason='Fastcall.'}](Rotation: quaternion) -> vector,
Rot2Left: @[deprecated {use='quaternion.toleft', reason='Fastcall.'}](Rotation: quaternion) -> vector,
Rot2Up: @[deprecated {use='quaternion.toup', reason='Fastcall.'}](Rotation: quaternion) -> vector,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these actually fastcalls? I tried to figure it out from the slua code, but couldn't

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@tapple tapple Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like not. removing that reason: 6ddcc0c

VecNorm: (Vector: vector) -> vector,
VecDist: @[deprecated {use='vector.magnitude', reason="It's a fastcall."}](Location1: vector, Location2: vector) -> number,
VecMag: @[deprecated {use='vector.magnitude', reason="It's a fastcall."}](Vector: vector) -> number,
VecNorm: @[deprecated {use='vector.normalize', reason="It's a fastcall."}](Vector: vector) -> vector,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these actually fastcalls? I tried to figure it out from the slua code, but couldn't

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

2 participants