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
ReporterSignpostMarv 
Assigned To 
PrioritylowSeveritymajorReproducibilityalways
Statuspatch includedResolutionopen 
PlatformOSOS 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
{
    state_entry()
    {
        vector a = <1.3,2.4,3.5>;
        vector b = <2,3,4>;
        vector c = osVecMultiply(a, b);
        llOwnerSay((string)c);
    }
}
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
Script Engine
Environment.NET / Windows32
Mono VersionNone
Viewer
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
(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 [^]

- 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