Anonymous | Login | Signup for a new account | 2021-01-28 04:09 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0006242 | opensim | [REGION] Scripting Engine | public | 2012-08-23 07:03 | 2012-08-29 06:55 | |||||
Reporter | SignpostMarv | |||||||||
Assigned To | ||||||||||
Priority | low | Severity | major | Reproducibility | always | |||||
Status | patch included | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | master (dev code) | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0006242: LSL syntax does not permit multiplication or division of Vectors | |||||||||
Description | LSL syntax does not permit multiplication or division of Vectors, so rather than trying to hammer that into the LSL parser we get two functions that typecast the vector to Vector3d and use the "*" and "/" operators on those types to do the math. | |||||||||
Steps To Reproduce | default { state_entry() { vector a = <1.3,2.4,3.5>; vector b = <2,3,4>; vector c = osVecMultiply(a, b); llOwnerSay((string)c); } } | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | ||||||||||
Run Mode | Standalone (1 Region) | |||||||||
Physics Engine | BasicPhysics | |||||||||
Script Engine | ||||||||||
Environment | .NET / Windows32 | |||||||||
Mono Version | None | |||||||||
Viewer | ||||||||||
Attached Files | ![]() | |||||||||
![]() |
|
(0022418) SignpostMarv (reporter) 2012-08-23 07:06 |
I had considered implementing it as a list-based function, but that would've been overkill :P so you can just osVecMultiply(a, osVecMultiply(b, osVecMultiply(c, d))) instead of osVecMultiply([a,b,c,d]) |
(0022473) SignpostMarv (reporter) 2012-08-29 06:55 |
This may fall under the same category as 0006147, which was closed on the suggestion of putting it in an optional math module. An optional math module incorporating 0006147, these funcs and some others is available at https://github.com/CCIR/TSU.CCIR.OpenSim.Math [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2012-08-23 07:03 | SignpostMarv | New Issue | |
2012-08-23 07:03 | SignpostMarv | File Added: osVecMath.patch | |
2012-08-23 07:03 | SignpostMarv | Status | new => patch included |
2012-08-23 07:06 | SignpostMarv | Note Added: 0022418 | |
2012-08-29 06:55 | SignpostMarv | Note Added: 0022473 | |
2012-08-29 06:55 | SignpostMarv | Relationship added | related to 0006147 |
Copyright © 2000 - 2012 MantisBT Group |