Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    VDV777's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Quote Originally Posted by Kenshin13 View Post


    A vector is a 3D Structure that holds (or can hold) your x, y and z positions.
    Vector3D is the same. It's just another name since there can be (incorrectly named) vector2D (just X and Y axis).
    What is the VectorSubtract ??? It is (Enemy(x1+y1+z1)-My(x+y+z) ??? That is right?(If you give an example on the specific coordinates)

  2. #17
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by VDV777 View Post
    What is the VectorSubtract ??? It is (Enemy(x1+y1+z1)-My(x+y+z) ??? That is right?(If you give an example on the specific coordinates)
    It's exactly that. Some common sense would also be vital. Just like VectorAdd does addition of the vectors and DotProduct finds the dot product of two vectors.

  3. #18
    VDV777's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    Quote Originally Posted by Kenshin13 View Post


    It's exactly that. Some common sense would also be vital. Just like VectorAdd does addition of the vectors and DotProduct finds the dot product of two vectors.
    What is dotProduct ???It is my (x*y*z)??? It is right?
    What is RefDef(I called Vect3d)??? It is :

    Code:
    #pragma once
    
    #include <math.h>
    
    
        class Vect3d
        {
    	public:
            float x;
            float y;
            float z;
    
            Vect3d(float _x, float _y, float _z)
            {
                x = _x;
                y = _y;
                z = _z;
            }
    
            Vect3d()
            {
            }
    
            float length()
            {
    			return (float)sqrt(x * x + y * y + z * z);
            }
    
            float dotproduct(Vect3d dot)
            {
                return (x * dot.x + y * dot.y + z * dot.z);
            }
    
        };
    
    		
        class PlayerDataVec
        {
    		public:
            float xMouse;
            float yMouse;
            
            float xPos;
            float yPos;
            float zPos;
           
            
            
            
           
    
            Vect3d VecCoords()
            {
    			Vect3d vec(xPos, yPos, zPos);
                return vec;
            }
        };

    It is right????
    Last edited by VDV777; 05-09-2013 at 12:33 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Solved] Can someone please help me with the rustler menu!! I need help!
    By christiandk374 in forum DayZ Help & Requests
    Replies: 4
    Last Post: 02-23-2013, 10:26 AM
  2. Hello, please help me with my missing minecraft world!
    By Fr33f0rdeath in forum Minecraft Help
    Replies: 1
    Last Post: 01-20-2012, 10:42 AM
  3. Please help me with the Cham-Hack :)
    By zitrone60 in forum CrossFire Hacks & Cheats
    Replies: 21
    Last Post: 10-25-2009, 09:28 AM
  4. can anyone please help me with the aimbot?
    By jmonking in forum Combat Arms Europe Hacks
    Replies: 8
    Last Post: 09-07-2009, 08:39 AM