opensurgsim
|
Conversions to and from OSG vector types. More...
#include "SurgSim/Math/Vector.h"
#include <osg/Vec2f>
#include <osg/Vec2d>
#include <osg/Vec3f>
#include <osg/Vec3d>
#include <osg/Vec4f>
#include <osg/Vec4d>
Go to the source code of this file.
Namespaces | |
SurgSim | |
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions. | |
Functions | |
osg::Vec2f | SurgSim::Graphics::toOsg (const SurgSim::Math::Vector2f &vector) |
Convert 2D vector of floats to OSG. | |
SurgSim::Math::Vector2f | SurgSim::Graphics::fromOsg (const osg::Vec2f &vector) |
Convert from OSG to 2D vector of floats. | |
osg::Vec2d | SurgSim::Graphics::toOsg (const SurgSim::Math::Vector2d &vector) |
Convert 2D vector of doubles to OSG. | |
SurgSim::Math::Vector2d | SurgSim::Graphics::fromOsg (const osg::Vec2d &vector) |
Convert from OSG to 2D vector of doubles. | |
osg::Vec3f | SurgSim::Graphics::toOsg (const SurgSim::Math::Vector3f &vector) |
Convert 3D vector of floats to OSG. | |
SurgSim::Math::Vector3f | SurgSim::Graphics::fromOsg (const osg::Vec3f &vector) |
Convert from OSG to 3D vector of floats. | |
osg::Vec3d | SurgSim::Graphics::toOsg (SurgSim::Math::Vector3d vector) |
Convert 3D vector of doubles to OSG. | |
SurgSim::Math::Vector3d | SurgSim::Graphics::fromOsg (const osg::Vec3d &vector) |
Convert from OSG to 3D vector of doubles. | |
osg::Vec4f | SurgSim::Graphics::toOsg (const SurgSim::Math::Vector4f &vector) |
Convert 4D vector of floats to OSG. | |
SurgSim::Math::Vector4f | SurgSim::Graphics::fromOsg (const osg::Vec4f &vector) |
Convert from OSG to 4D vector of floats. | |
osg::Vec4d | SurgSim::Graphics::toOsg (const SurgSim::Math::Vector4d &vector) |
Convert 4D vector of doubles to OSG. | |
SurgSim::Math::Vector4d | SurgSim::Graphics::fromOsg (const osg::Vec4d &vector) |
Convert from OSG to 4D vector of doubles. | |
Conversions to and from OSG vector types.