RE: vectors
"Marcin Pilat" <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <000a01c3b5df$92afe000$6601a8c0@dabear> |
It would be nice to have such direct functionality in breve. However, I found a way of extracting the coordinate in case somebody needs it: To get x coord: myVec = (self get-location). myAngle = angle(myVec, (1.0, 0, 0)). x-val = (|myVec| * cos(myAngle)). For y, use (0,1.0,0), for z use (0,0,1.0). The result is the same up to 3-4 decimal places (because of the cosine). Marcin -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marcin Pilat Sent: November 28, 2003 11:22 AM To: [email protected] Subject: [breve] vectors How can I extract 1 coordinate of a vector? I can't find such functionality in the documentation. I want to find out the x-coordinate of a Mobile object but there is only a get-location function which returns a vector. Thanks, Marcin _______________________________________________ breve mailing list [email protected] http://www.spiderland.org/mailman/listinfo/breve