Re: Vector

jon klein <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On May 25, 2004, at 7:07 AM, Nicolas Lassabe wrote:

> I didn't see how to get the values of a vector... I try v[0], v{0} ,v
> getX...  I wanted to use Dot Product too, it define inside
> ./utils/vector.h but I don't know the syntaxe in Breve. Any ideas ??

Accessing the vector elements, as Will noted, is done with ::x, etc.

To do a dot-product, you can use the internal math function dot:

n = dot(v1, v2).

- jon klein

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.