User Profile

Collapse

Profile Sidebar

Collapse
Eldyr
Eldyr
Last Activity: Feb 10 '21, 05:13 PM
Joined: Feb 8 '21
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Eldyr
    replied to Construct a Vector by subtracting 2 verticies
    in C
    I have included the Vector3D.h to the Vertex header

    The Vertex header
    Code:
    #pragma once
    #include "Vector3D.h"
    #include "stdafx.h"
    
    class Vertex
    {
    public:
    	Vertex();
    	Vertex(float x, float y, float z, float w);
    
    	//Copy constructor
    	Vertex(const Vertex& v);
    
    	//Destructor
    	~Vertex();
    
    	//Accessors
    ...
    See more | Go to post

    Leave a comment:


  • Eldyr
    started a topic Construct a Vector by subtracting 2 verticies
    in C

    Construct a Vector by subtracting 2 verticies

    For my assignment, I need to construct a function that takes 2 vertices(any vertex), subtract them and return a vector
    The vertices are defined in the Vertex class and the vectors in Vector3D class

    the task
    Screenshot_216. png
    Screenshot_217. png

    I put the declaration of the function in the Vertex header (and her body in the Vertex class) because it needs to be called from the vertices
    ...
    See more | Go to post
No activity results to display
Show More
Working...