RE: [hlcoders] Inverse Vector

2007-02-14 Thread Jay C.
That's what I meant thanks all for your help!

> -Original Message-
> From: Jeffrey "botman" Broome [mailto:[EMAIL PROTECTED]
> Sent: 14 February 2007 19:10
> To: hlcoders@list.valvesoftware.com
> Subject: Re: [hlcoders] Inverse Vector
>
> Jay C. wrote:
> > Hey,
> >
> > Anyone know the quickest way to inverse a Vector?
> >
> > I tried x,y and z *= -1 but that wasn't correct.
>
> What do you mean by "inverse"?
>
> Vect * -1 will give you a vector that points in the opposite direction
> of the original vector.
>
> --
> Jeffrey "botman" Broome
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Inverse Vector

2007-02-14 Thread Kevin Ottalini

programmatically:
http://www.extremeoptimization.com/Reference/html/Extreme.Mathematics.LinearAlgebra.Vector.Inverse.htm

overall review:
http://en.wikipedia.org/wiki/Vector_space

... unless you meant some other sort of Vector ...


- Original Message -
From: "Jay C."
To: 
Sent: Wednesday, February 14, 2007 10:50 AM
Subject: [hlcoders] Inverse Vector



Hey,

Anyone know the quickest way to inverse a Vector?

I tried x,y and z *= -1 but that wasn't correct.

Thanks in advance.

Jay




___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Inverse Vector

2007-02-14 Thread Giancarlo Rivas
--
[ Picked text/plain from multipart/alternative ]
v *= -1.0f
v2 = -v1 etc
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Inverse Vector

2007-02-14 Thread Jeffrey \"botman\" Broome

Jay C. wrote:

Hey,

Anyone know the quickest way to inverse a Vector?

I tried x,y and z *= -1 but that wasn't correct.


What do you mean by "inverse"?

Vect * -1 will give you a vector that points in the opposite direction
of the original vector.

--
Jeffrey "botman" Broome

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Inverse Vector

2007-02-14 Thread Ondřej Hošek

From what I gather by reading a rather outdated version of vector.h,
you can call Negate() to invert an existing vector; or, if you don't
#define VECTOR_NO_SLOW_OPERATIONS, you can create a new negated vector
by calling {v2 = -v1;} (the canonical negation operator.)

To be sure, just check public/vector.h.

~~ Ondra

Jay C. wrote:

Hey,

Anyone know the quickest way to inverse a Vector?

I tried x,y and z *= -1 but that wasn't correct.

Thanks in advance.

Jay



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Inverse Vector

2007-02-14 Thread Andrew Timson

On 2/14/07, Jay C. <[EMAIL PROTECTED]> wrote:


Anyone know the quickest way to inverse a Vector?

I tried x,y and z *= -1 but that wasn't correct.


Umm... that should be correct; that'll give you the vector of the same
magnitude (length) going in the opposite direction.

(That *is* what you're looking for, yes? If not, you'll have to
describe it, since I think you're using the wrong term.)

--
Andrew Timson
==
"Niceness is the greatest human flaw, except for all the others."
--Brendan Moody

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Inverse Vector

2007-02-14 Thread Jay C.
Hey,

Anyone know the quickest way to inverse a Vector?

I tried x,y and z *= -1 but that wasn't correct.

Thanks in advance.

Jay


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders