TrinityCore
Loading...
Searching...
No Matches
Vec3D Class Reference

#include <vec3d.h>

Public Member Functions

 Vec3D (float x0=0.0f, float y0=0.0f, float z0=0.0f)
 
 Vec3D (Vec3D const &v)=default
 
Vec3Doperator= (Vec3D const &v)=default
 
Vec3D operator+ (Vec3D const &v) const
 
Vec3D operator- (Vec3D const &v) const
 
Vec3Doperator+= (Vec3D const &v)
 
Vec3Doperator-= (Vec3D const &v)
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

Definition at line 21 of file vec3d.h.

Constructor & Destructor Documentation

◆ Vec3D() [1/2]

Vec3D::Vec3D ( float  x0 = 0.0f,
float  y0 = 0.0f,
float  z0 = 0.0f 
)
inline

Definition at line 26 of file vec3d.h.

◆ Vec3D() [2/2]

Vec3D::Vec3D ( Vec3D const &  v)
default

Member Function Documentation

◆ operator+()

Vec3D Vec3D::operator+ ( Vec3D const &  v) const
inline

Definition at line 32 of file vec3d.h.

◆ operator+=()

Vec3D & Vec3D::operator+= ( Vec3D const &  v)
inline

Definition at line 42 of file vec3d.h.

◆ operator-()

Vec3D Vec3D::operator- ( Vec3D const &  v) const
inline

Definition at line 37 of file vec3d.h.

◆ operator-=()

Vec3D & Vec3D::operator-= ( Vec3D const &  v)
inline

Definition at line 50 of file vec3d.h.

◆ operator=()

Vec3D & Vec3D::operator= ( Vec3D const &  v)
default

Member Data Documentation

◆ x

float Vec3D::x

Definition at line 24 of file vec3d.h.

◆ y

float Vec3D::y

Definition at line 24 of file vec3d.h.

◆ z

float Vec3D::z

Definition at line 24 of file vec3d.h.


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