BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
Vector3 Class Reference

#include <Vector.h>

Public Member Functions

 Vector3 (int x, int y, int z)
 
 Vector3 (int xyz)
 
 Vector3 ()
 

Public Attributes

int x
 
int y
 
int z
 

Detailed Description

Three-component vector (X/Y/Z)

Constructor & Destructor Documentation

◆ Vector3() [1/3]

Vector3::Vector3 ( int x,
int y,
int z )

Create the Vector2

Parameters
xThe X coordinate to assign to the Vector3.
yThe Y coordinate to assign to the Vector3.
zThe Z coordinate to assign to the Vector3.

◆ Vector3() [2/3]

Vector3::Vector3 ( int xyz)

Create the Vector3

Parameters
xyzThe value to assign to the X/Y/Z coordinates of the Vector2.

◆ Vector3() [3/3]

Vector3::Vector3 ( )

Create a blank Vector3, with X/Y/Z = 0.

Member Data Documentation

◆ x

int Vector3::x

The X coordinate of the Vector3

◆ y

int Vector3::y

The Y coordinate of the Vector3

◆ z

int Vector3::z

The Z coordinate of the Vector3


The documentation for this class was generated from the following files: