Spore ModAPI  2.4.0
API for creating C++ mods for Spore
Public Member Functions | Public Attributes | Friends | List of all members
Math::Vector3 Struct Reference

A vector of 3 float values (x, y, z). More...

#include <MathUtils.h>

Public Member Functions

 Vector3 ()
 
 Vector3 (const Vector3 &other)
 
 Vector3 (float x, float y, float z)
 
float length () const
 
Vector3operator+= (const Vector3 &b)
 
Vector3operator+= (const float b)
 
Vector3operator-= (const Vector3 &b)
 
Vector3operator-= (const float b)
 
Vector3operator*= (float b)
 
Vector3operator/= (float b)
 
Vector3 normalized ()
 

Public Attributes

float x
 
float y
 
float z
 

Friends

Vector3 operator+ (Vector3 a, const Vector3 &b)
 
Vector3 operator+ (Vector3 a, float b)
 
Vector3 operator- (Vector3 a, const Vector3 &b)
 
Vector3 operator- (Vector3 a, float b)
 
Vector3 operator* (Vector3 a, float b)
 
Vector3 operator/ (Vector3 a, float b)
 

Detailed Description

A vector of 3 float values (x, y, z).

Constructor & Destructor Documentation

◆ Vector3() [1/3]

Math::Vector3::Vector3 ( )

◆ Vector3() [2/3]

Math::Vector3::Vector3 ( const Vector3 other)

◆ Vector3() [3/3]

Math::Vector3::Vector3 ( float  x,
float  y,
float  z 
)

Member Function Documentation

◆ length()

float Math::Vector3::length ( ) const
inline

◆ normalized()

Vector3 Math::Vector3::normalized ( )
inline

◆ operator*=()

Vector3& Math::Vector3::operator*= ( float  b)
inline

◆ operator+=() [1/2]

Vector3& Math::Vector3::operator+= ( const Vector3 b)
inline

◆ operator+=() [2/2]

Vector3& Math::Vector3::operator+= ( const float  b)
inline

◆ operator-=() [1/2]

Vector3& Math::Vector3::operator-= ( const Vector3 b)
inline

◆ operator-=() [2/2]

Vector3& Math::Vector3::operator-= ( const float  b)
inline

◆ operator/=()

Vector3& Math::Vector3::operator/= ( float  b)
inline

Friends And Related Function Documentation

◆ operator*

Vector3 operator* ( Vector3  a,
float  b 
)
friend

◆ operator+ [1/2]

Vector3 operator+ ( Vector3  a,
const Vector3 b 
)
friend

◆ operator+ [2/2]

Vector3 operator+ ( Vector3  a,
float  b 
)
friend

◆ operator- [1/2]

Vector3 operator- ( Vector3  a,
const Vector3 b 
)
friend

◆ operator- [2/2]

Vector3 operator- ( Vector3  a,
float  b 
)
friend

◆ operator/

Vector3 operator/ ( Vector3  a,
float  b 
)
friend

Member Data Documentation

◆ x

float Math::Vector3::x

◆ y

float Math::Vector3::y

◆ z

float Math::Vector3::z

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