• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

Public Member Functions | Friends | List of all members
Vec3 Class Reference

#include <attlib.h>

Public Member Functions

 Vec3 (double x=0, double y=0, double z=0)
 
 Vec3 (const Vec3 &c)
 
void assign (double x=0, double y=0, double z=0)
 
Vec3 & operator*= (const Vec3 &c)
 
Vec3 & operator*= (double r)
 
Vec3 & operator+= (const Vec3 &c)
 
Vec3 & operator-= (const Vec3 &c)
 
Vec3 & operator/= (double r)
 
Vec3 & operator= (const Vec3 &c)
 
double & operator[] (unsigned index)
 

Friends

double abs (const Vec3 &c)
 
Vec3 carpol (const Vec3 &c)
 
double dot (const Vec3 &c1, const Vec3 &c2)
 
Vec3 operator* (double r, const Vec3 &c1)
 
Vec3 operator* (const Vec3 &c1, double r)
 
Vec3 operator* (const Vec3 &c1, const Vec3 &c2)
 
Vec3 operator+ (const Vec3 &c1, const Vec3 &c2)
 
Vec3 operator- (const Vec3 &c1, const Vec3 &c2)
 
Vec3 operator/ (const Vec3 &c1, double r)
 
std::ostream & operator<< (std::ostream &os, const Vec3 &c)
 
Vec3 polcar (const Vec3 &c)
 
Vec3 vnorm (const Vec3 &c)
 

Detailed Description

Definition at line 27 of file attlib.h.

Constructor & Destructor Documentation

Vec3::Vec3 ( double  x = 0,
double  y = 0,
double  z = 0 
)

Definition at line 37 of file attlib.cpp.

Vec3::Vec3 ( const Vec3 &  c)

Definition at line 40 of file attlib.cpp.

Member Function Documentation

void Vec3::assign ( double  x = 0,
double  y = 0,
double  z = 0 
)

Definition at line 46 of file attlib.cpp.

Vec3 & Vec3::operator*= ( const Vec3 &  c)

Definition at line 74 of file attlib.cpp.

Vec3 & Vec3::operator*= ( double  r)

Definition at line 84 of file attlib.cpp.

Vec3 & Vec3::operator+= ( const Vec3 &  c)

Definition at line 62 of file attlib.cpp.

Vec3 & Vec3::operator-= ( const Vec3 &  c)

Definition at line 68 of file attlib.cpp.

Vec3 & Vec3::operator/= ( double  r)

Definition at line 90 of file attlib.cpp.

Vec3 & Vec3::operator= ( const Vec3 &  c)

Definition at line 56 of file attlib.cpp.

double & Vec3::operator[] ( unsigned  index)

Definition at line 51 of file attlib.cpp.

Friends And Related Function Documentation

double abs ( const Vec3 &  c)
friend

Definition at line 100 of file attlib.cpp.

Vec3 carpol ( const Vec3 &  c)
friend

Definition at line 184 of file attlib.cpp.

double dot ( const Vec3 &  c1,
const Vec3 &  c2 
)
friend

Definition at line 108 of file attlib.cpp.

Vec3 operator* ( double  r,
const Vec3 &  c1 
)
friend

Definition at line 133 of file attlib.cpp.

Vec3 operator* ( const Vec3 &  c1,
double  r 
)
friend

Definition at line 141 of file attlib.cpp.

Vec3 operator* ( const Vec3 &  c1,
const Vec3 &  c2 
)
friend

Definition at line 149 of file attlib.cpp.

Vec3 operator+ ( const Vec3 &  c1,
const Vec3 &  c2 
)
friend

Definition at line 116 of file attlib.cpp.

Vec3 operator- ( const Vec3 &  c1,
const Vec3 &  c2 
)
friend

Definition at line 124 of file attlib.cpp.

Vec3 operator/ ( const Vec3 &  c1,
double  r 
)
friend

Definition at line 159 of file attlib.cpp.

std::ostream& operator<< ( std::ostream &  os,
const Vec3 &  c 
)
friend
Vec3 polcar ( const Vec3 &  c)
friend

Definition at line 207 of file attlib.cpp.

Vec3 vnorm ( const Vec3 &  c)
friend

Definition at line 170 of file attlib.cpp.


The documentation for this class was generated from the following files:
  • attlib.h
  • attlib.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal