Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006242opensim[REGION] Scripting Enginepublic2012-08-23 07:032012-08-29 06:55
Assigned To 
Statuspatch includedResolutionopen 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006242: LSL syntax does not permit multiplication or division of Vectors
DescriptionLSL 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 Reproducedefault
        vector a = <1.3,2.4,3.5>;
        vector b = <2,3,4>;
        vector c = osVecMultiply(a, b);
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
Script Engine
Environment.NET / Windows32
Mono VersionNone
Attached Filespatch file icon osVecMath.patch [^] (3,505 bytes) 2012-08-23 07:03 [Show Content]

- Relationships
related to 0006147closedmelanie Add Phi constant to script engine 

-  Notes
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])
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 [^]

- Issue History
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
Powered by Mantis Bugtracker