The Vector2 class is a template class that implements a generic 2 components vector, see also vl::fvec2, vl::dvec2, vl::uvec2, vl::ivec2, vl::svec2, vl::usvec2, vl::bvec2, vl::ubvec2.
More...
#include <Vector2.hpp>
template<typename T_Scalar>
class vl::Vector2< T_Scalar >
The Vector2 class is a template class that implements a generic 2 components vector, see also vl::fvec2, vl::dvec2, vl::uvec2, vl::ivec2, vl::svec2, vl::usvec2, vl::bvec2, vl::ubvec2.
- See also
- Vector4, Vector3, Matrix4, Matrix3, Matrix2
Definition at line 97 of file Vector2.hpp.
◆ scalar_ptr_type
template<typename T_Scalar>
◆ scalar_type
template<typename T_Scalar>
◆ Vector2() [1/6]
template<typename T_Scalar>
◆ Vector2() [2/6]
template<typename T_Scalar>
◆ Vector2() [3/6]
template<typename T_Scalar>
template<class T >
◆ Vector2() [4/6]
template<typename T_Scalar>
◆ Vector2() [5/6]
template<typename T_Scalar>
◆ Vector2() [6/6]
template<typename T_Scalar>
◆ g() [1/2]
template<typename T_Scalar>
◆ g() [2/2]
template<typename T_Scalar>
◆ isNull()
template<typename T_Scalar>
◆ length() [1/2]
template<typename T_Scalar>
◆ length() [2/2]
◆ lengthSquared() [1/2]
template<typename T_Scalar>
T_Scalar vl::Vector2< T_Scalar >::lengthSquared |
( |
| ) |
const |
|
inline |
◆ lengthSquared() [2/2]
◆ normalize()
template<typename T_Scalar>
◆ operator!=()
template<typename T_Scalar>
◆ operator*() [1/2]
template<typename T_Scalar>
◆ operator*() [2/2]
template<typename T_Scalar>
◆ operator*=() [1/2]
template<typename T_Scalar>
◆ operator*=() [2/2]
template<typename T_Scalar>
◆ operator+() [1/2]
template<typename T_Scalar>
◆ operator+() [2/2]
template<typename T_Scalar>
◆ operator+=() [1/2]
template<typename T_Scalar>
◆ operator+=() [2/2]
template<typename T_Scalar>
◆ operator-() [1/3]
template<typename T_Scalar>
◆ operator-() [2/3]
template<typename T_Scalar>
◆ operator-() [3/3]
template<typename T_Scalar>
◆ operator-=() [1/2]
template<typename T_Scalar>
◆ operator-=() [2/2]
template<typename T_Scalar>
◆ operator/() [1/2]
template<typename T_Scalar>
◆ operator/() [2/2]
template<typename T_Scalar>
◆ operator/=() [1/2]
template<typename T_Scalar>
◆ operator/=() [2/2]
template<typename T_Scalar>
◆ operator<()
template<typename T_Scalar>
◆ operator=() [1/2]
template<typename T_Scalar>
◆ operator=() [2/2]
template<typename T_Scalar>
◆ operator==()
template<typename T_Scalar>
◆ operator[]() [1/2]
template<typename T_Scalar>
T_Scalar& vl::Vector2< T_Scalar >::operator[] |
( |
unsigned |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
template<typename T_Scalar>
const T_Scalar& vl::Vector2< T_Scalar >::operator[] |
( |
unsigned |
i | ) |
const |
|
inline |
◆ ptr() [1/2]
template<typename T_Scalar>
Definition at line 130 of file Vector2.hpp.
Referenced by vl::PatchParameter::apply(), vl::DaeLoader::generateGeometry(), vl::Array< bvec2, GLbyte, 2, GL_BYTE >::getAsVec2(), vl::Uniform::getUniform(), vl::GLSLProgram::getUniform(), vl::Uniform::getUniform2D(), vl::Uniform::getUniform2F(), vl::Uniform::getUniform2I(), vl::Uniform::getUniform2U(), and vl::Uniform::setUniform().
◆ ptr() [2/2]
template<typename T_Scalar>
◆ r() [1/2]
template<typename T_Scalar>
◆ r() [2/2]
template<typename T_Scalar>
◆ s() [1/2]
template<typename T_Scalar>
◆ s() [2/2]
template<typename T_Scalar>
◆ t() [1/2]
template<typename T_Scalar>
◆ t() [2/2]
template<typename T_Scalar>
◆ x() [1/2]
template<typename T_Scalar>
Definition at line 133 of file Vector2.hpp.
Referenced by vl::abs(), vl::acos(), vl::acosh(), vl::RectF::addPoint(), vl::all(), vl::any(), vl::asin(), vl::asinh(), vl::atan(), vl::atanh(), vl::ceil(), vl::Geometry::computeTangentSpace(), vl::Image::copySubImage(), vl::cos(), vl::cosh(), vl::degrees(), vl::dot(), vl::GhostCameraManipulator::enableEvent(), vl::equal(), vl::exp(), vl::exp2(), vl::floor(), vl::Matrix3< T_Scalar >::getScaling(), vl::Matrix3< T_Scalar >::getT(), vl::Matrix3< T_Scalar >::getTranslation(), vl::Matrix3< T_Scalar >::getX(), vl::Matrix3< T_Scalar >::getY(), vl::greaterThan(), vl::greaterThanEqual(), vl::inversesqrt(), vl::isinf(), vl::isnan(), vl::Vector2< int >::isNull(), vl::Vector2< int >::length(), vl::Vector2< int >::lengthSquared(), vl::lessThan(), vl::lessThanEqual(), vl::log(), vl::log10(), vl::log2(), vl::max(), vl::min(), vl::mix(), vl::modf(), vl::FlatManipulator::mouseDownEvent(), vl::TrackballManipulator::mouseDownEvent(), vl::GhostCameraManipulator::mouseMoveEvent(), vl::FlatManipulator::mouseMoveEvent(), vl::TrackballManipulator::mouseMoveEvent(), vl::notEqual(), vl::Vector2< int >::operator*(), vl::operator*(), vl::Vector2< int >::operator+(), vl::Vector2< int >::operator-(), vl::Vector2< int >::operator/(), vl::Vector2< int >::operator<(), vl::Vector2< int >::operator=(), vl::Vector2< int >::operator==(), vl::pow(), vl::radians(), vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::DrawPixels::render_Implementation(), vl::Text::renderText(), vl::CoreText::renderText(), vl::round(), vl::roundEven(), vl::Matrix3< T_Scalar >::scale(), vl::Matrix3< T_Scalar >::setT(), vl::Matrix3< T_Scalar >::setX(), vl::Matrix3< T_Scalar >::setY(), vl::sign(), vl::sin(), vl::sinh(), vl::smoothstep(), vl::sqrt(), vl::step(), vl::tan(), vl::tanh(), vl::TrackballManipulator::trackballRotation(), vl::trunc(), vl::BezierSurface::updateBezierSurface(), vl::Vector2< int >::Vector2(), vl::Vector3< int >::Vector3(), vl::Vector4< unsigned int >::Vector4(), and vlX::vlx_toValue().
◆ x() [2/2]
template<typename T_Scalar>
◆ y() [1/2]
template<typename T_Scalar>
Definition at line 134 of file Vector2.hpp.
Referenced by vl::abs(), vl::acos(), vl::acosh(), vl::RectF::addPoint(), vl::all(), vl::any(), vl::asin(), vl::asinh(), vl::atan(), vl::atanh(), vl::ceil(), vl::Geometry::computeTangentSpace(), vl::Image::copySubImage(), vl::cos(), vl::cosh(), vl::degrees(), vl::dot(), vl::equal(), vl::exp(), vl::exp2(), vl::floor(), vl::Matrix3< T_Scalar >::getScaling(), vl::Matrix3< T_Scalar >::getT(), vl::Matrix3< T_Scalar >::getTranslation(), vl::Matrix3< T_Scalar >::getX(), vl::Matrix3< T_Scalar >::getY(), vl::greaterThan(), vl::greaterThanEqual(), vl::inversesqrt(), vl::isinf(), vl::isnan(), vl::Vector2< int >::isNull(), vl::Vector2< int >::length(), vl::Vector2< int >::lengthSquared(), vl::lessThan(), vl::lessThanEqual(), vl::log(), vl::log10(), vl::log2(), vl::max(), vl::min(), vl::mix(), vl::modf(), vl::FlatManipulator::mouseDownEvent(), vl::TrackballManipulator::mouseDownEvent(), vl::FlatManipulator::mouseMoveEvent(), vl::TrackballManipulator::mouseMoveEvent(), vl::notEqual(), vl::Vector2< int >::operator*(), vl::operator*(), vl::Vector2< int >::operator+(), vl::Vector2< int >::operator-(), vl::Vector2< int >::operator/(), vl::Vector2< int >::operator<(), vl::Vector2< int >::operator=(), vl::Vector2< int >::operator==(), vl::pow(), vl::radians(), vl::Text::rawboundingRect(), vl::CoreText::rawboundingRect(), vl::DrawPixels::render_Implementation(), vl::Text::renderText(), vl::CoreText::renderText(), vl::round(), vl::roundEven(), vl::Matrix3< T_Scalar >::scale(), vl::Matrix3< T_Scalar >::setT(), vl::Matrix3< T_Scalar >::setX(), vl::Matrix3< T_Scalar >::setY(), vl::sign(), vl::sin(), vl::sinh(), vl::smoothstep(), vl::sqrt(), vl::step(), vl::tan(), vl::tanh(), vl::TrackballManipulator::trackballRotation(), vl::trunc(), vl::BezierSurface::updateBezierSurface(), vl::Vector2< int >::Vector2(), vl::Vector3< int >::Vector3(), vl::Vector4< unsigned int >::Vector4(), and vlX::vlx_toValue().
◆ y() [2/2]
template<typename T_Scalar>
◆ mScalar
template<typename T_Scalar>
◆ scalar_count
template<typename T_Scalar>
The documentation for this class was generated from the following file: