Search found 87 matches
- 09 Dec 2012 21:33
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
bottom line though, how would a new user ever grasp all that from the manual? Yeah, who knows :) I guess since I'm just used to using vectors for sets of things and for ordered sequences of data, I think whenever I think about these things it's in a specific context, but new users don't have that s...
- 09 Dec 2012 18:46
- Forum: General Discussion
- Topic: most similar programming language to Lemur scripting?
- Replies: 3
- Views: 1299
Re: most similar programming language to Lemur scripting?
Lemur's syntax (how commands are written and things like if-statements and for/while loops) are C-style. In that sense, Lemur scripts look similar to a whole lot of languages like C, C++, PHP, and Java. Of those, I'd say that when people write programs with those languages, they'd use C most similar...
- 09 Dec 2012 18:41
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
Just a quick suggestion about how you can see if two vectors are exactly equal (same values, same order). You can do something like: SLVector.distance(vec1,vec2)==0 && sizeof(vec1)==sizeof(vec2) That checks to see if the distance between the two vectors is 0 and that they're the same size (to make s...
- 09 Dec 2012 08:33
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
Suggestion: I still think it is useful, though I suggest you clarify what exactly the outcome is based on. Apparently, this is like this by default in Lemur/programming environments. I was banging my head because, to me, whether a vector or a singleton, a value should not be validated as "contained...
- 09 Dec 2012 08:26
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
The is_subset(a,b) of or whatever it was probably should have been the other way is b part of a to maintain consistency ie array , val I think it is best to keep everything fairly basic - ie fundamentals So I'm not sure about your change to contains() now it is now contains all as opposed to contai...
- 08 Dec 2012 20:30
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
Hi Brian I just meant that add function as '+' was already there, which is at he used then 'wrap'ed to the shorter length - I guess I'm used to MutableArrays . . . I was not sure if you realised the maths operators +-/* already worked on arrays but at longer length making AB code that much simpler ...
- 08 Dec 2012 20:19
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
What I need is some sort of function to determine whether vectorB's values are CONTAINED in vectorA, and then obtain a true or false result. Obviously, the length/size of the vectors is oversimplified. As I said, I need to compare vectors with about 100 values vs smaller vectors with about 6 values...
- 08 Dec 2012 19:29
- Forum: Wishlist
- Topic: Ability to rename scripts and expressions
- Replies: 8
- Views: 16161
Ability to rename scripts and expressions
Unless I'm missing something (quite possible), scripts and expressions can't be renamed in the editor. This would be a very welcome addition.
- 06 Dec 2012 01:57
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
Cheers AB That was what I was getting at - that the 'add' function was already there, just implemented differently Your add_array would drop in replace for SLVector.add - I think I used subarrays() in a similar case . . . and I do think it is worth adding something that indicates it truncates as op...
- 05 Dec 2012 20:41
- Forum: Modules
- Topic: Module for working with Vectors
- Replies: 37
- Views: 16163
Re: Module for working with Vectors
Updated to include some more functions for creating random vectors (floats, integers, and unique floats after inspiration from Antonio), calculating magnitude, calculating angle between vectors, changing the range of all values for all elements, and probably something else. Complete documentation to...