Logo
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SharpKmyMath::Vector3 Struct Reference

#include <Vector3.h>

Public Member Functions

 Vector3 (float v)
 
 Vector3 (float _x, float _y, float _z)
 
float length ()
 

Static Public Member Functions

static Vector3 normalize (Vector3 v)
 
static Vector3 operator- (Vector3 v1, Vector3 v2)
 
static Vector3 operator+ (Vector3 v1, Vector3 v2)
 
static Vector3 operator* (Vector3 v, float f)
 
static Vector3 operator* (Vector3 v1, Vector3 v2)
 
static Vector3 operator/ (Vector3 v, float f)
 
static Vector3 operator- (Vector3 v)
 
static float dotProduct (Vector3 v1, Vector3 v2)
 
static Vector3 crossProduct (Vector3 v1, Vector3 v2)
 

Public Attributes

float x
 
float y
 
float z
 

Static Public Attributes

static Vector3 one = Vector3(1, 1, 1)
 
static Vector3 zero = Vector3(0, 0, 0)
 

Constructor & Destructor Documentation

◆ Vector3() [1/2]

SharpKmyMath::Vector3::Vector3 ( float  v)

◆ Vector3() [2/2]

SharpKmyMath::Vector3::Vector3 ( float  _x,
float  _y,
float  _z 
)

Member Function Documentation

◆ crossProduct()

static Vector3 SharpKmyMath::Vector3::crossProduct ( Vector3  v1,
Vector3  v2 
)
static

◆ dotProduct()

static float SharpKmyMath::Vector3::dotProduct ( Vector3  v1,
Vector3  v2 
)
static

◆ length()

float SharpKmyMath::Vector3::length ( )

◆ normalize()

static Vector3 SharpKmyMath::Vector3::normalize ( Vector3  v)
static

◆ operator*() [1/2]

static Vector3 SharpKmyMath::Vector3::operator* ( Vector3  v,
float  f 
)
static

◆ operator*() [2/2]

static Vector3 SharpKmyMath::Vector3::operator* ( Vector3  v1,
Vector3  v2 
)
static

◆ operator+()

static Vector3 SharpKmyMath::Vector3::operator+ ( Vector3  v1,
Vector3  v2 
)
static

◆ operator-() [1/2]

static Vector3 SharpKmyMath::Vector3::operator- ( Vector3  v)
static

◆ operator-() [2/2]

static Vector3 SharpKmyMath::Vector3::operator- ( Vector3  v1,
Vector3  v2 
)
static

◆ operator/()

static Vector3 SharpKmyMath::Vector3::operator/ ( Vector3  v,
float  f 
)
static

Member Data Documentation

◆ one

Vector3 SharpKmyMath::Vector3::one = Vector3(1, 1, 1)
static

◆ x

float SharpKmyMath::Vector3::x

◆ y

float SharpKmyMath::Vector3::y

◆ z

float SharpKmyMath::Vector3::z

◆ zero

Vector3 SharpKmyMath::Vector3::zero = Vector3(0, 0, 0)
static