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. wro
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
--
[ 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
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
___
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/
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 l
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/ma
7 matches
Mail list logo