MeshLib
 
Loading...
Searching...
No Matches
Vector3f Class Reference

represents a 3-dimentional float-typed vector More...

#include <MRVector3.h>

Public Member Functions

 Vector3f ()
 creates a new vector with zero coordinates
 
 Vector3f (float x, float y, float z)
 creates a new vector with specified coordinates
 
 ~Vector3f ()
 
void set (float value)
 
void set (float value)
 
void set (float value)
 

Static Public Member Functions

static Vector3f Diagonal (float a)
 creates a new vector with same coordinates
 
static Vector3f PlusX ()
 
static Vector3f MinusX ()
 
static Vector3f PlusY ()
 
static Vector3f MinusY ()
 
static Vector3f PlusZ ()
 
static Vector3f MinusZ ()
 
static Vector3f operator+ (Vector3f^ a, Vector3f^ b)
 
static Vector3f operator- (Vector3f^ a, Vector3f^ b)
 
static Vector3f operator* (Vector3f^ a, float b)
 
static Vector3f operator* (float a, Vector3f^ b)
 
static bool operator== (Vector3f^ a, Vector3f^ b)
 
static bool operator!= (Vector3f^ a, Vector3f^ b)
 

Public Attributes

property float X { float get()
 first coordinate
 
property float Y { float get()
 second coordinate
 
property float Z { float get()
 third coordinate
 

Detailed Description

represents a 3-dimentional float-typed vector

Constructor & Destructor Documentation

◆ Vector3f() [1/2]

Vector3f::Vector3f ( )

creates a new vector with zero coordinates

◆ Vector3f() [2/2]

Vector3f::Vector3f ( float x,
float y,
float z )

creates a new vector with specified coordinates

◆ ~Vector3f()

Vector3f::~Vector3f ( )

Member Function Documentation

◆ Diagonal()

static Vector3f Vector3f::Diagonal ( float a)
static

creates a new vector with same coordinates

◆ MinusX()

static Vector3f Vector3f::MinusX ( )
static

◆ MinusY()

static Vector3f Vector3f::MinusY ( )
static

◆ MinusZ()

static Vector3f Vector3f::MinusZ ( )
static

◆ operator!=()

static bool Vector3f::operator!= ( Vector3f^ a,
Vector3f^ b )
static

◆ operator*() [1/2]

static Vector3f Vector3f::operator* ( float a,
Vector3f^ b )
static

◆ operator*() [2/2]

static Vector3f Vector3f::operator* ( Vector3f^ a,
float b )
static

◆ operator+()

static Vector3f Vector3f::operator+ ( Vector3f^ a,
Vector3f^ b )
static

◆ operator-()

static Vector3f Vector3f::operator- ( Vector3f^ a,
Vector3f^ b )
static

◆ operator==()

static bool Vector3f::operator== ( Vector3f^ a,
Vector3f^ b )
static

◆ PlusX()

static Vector3f Vector3f::PlusX ( )
static

◆ PlusY()

static Vector3f Vector3f::PlusY ( )
static

◆ PlusZ()

static Vector3f Vector3f::PlusZ ( )
static

◆ set() [1/3]

void Vector3f::set ( float value)

◆ set() [2/3]

void Vector3f::set ( float value)

◆ set() [3/3]

void Vector3f::set ( float value)

Member Data Documentation

◆ X

property float Vector3f::X { float get()

first coordinate

◆ Y

property float Vector3f::Y { float get()

second coordinate

◆ Z

property float Vector3f::Z { float get()

third coordinate


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