Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
Dali::Vector4 Struct Reference

A four dimensional vector. More...

#include <vector4.h>

Collaboration diagram for Dali::Vector4:
Collaboration graph
[legend]

Public Member Functions

 Vector4 ()
 Default constructor, initializes the vector to 0. More...
 
 Vector4 (float x, float y, float z, float w)
 Conversion constructor from four floats. More...
 
 Vector4 (const float *array)
 Conversion constructor from an array of four floats. More...
 
 Vector4 (const Vector2 &vec2)
 Conversion constructor from Vector2. More...
 
 Vector4 (const Vector3 &vec3)
 Conversion constructor from Vector3. More...
 
Vector4operator= (const float *array)
 Assignment operator. More...
 
Vector4operator= (const Vector2 &vec2)
 Assignment operator. More...
 
Vector4operator= (const Vector3 &vec3)
 Assignment operator. More...
 
Vector4 operator+ (const Vector4 &rhs) const
 Addition operator. More...
 
Vector4operator+= (const Vector4 &rhs)
 Addition assignment operator. More...
 
Vector4 operator- (const Vector4 &rhs) const
 Subtraction operator. More...
 
Vector4operator-= (const Vector4 &rhs)
 Subtraction assignment operator. More...
 
Vector4 operator* (const Vector4 &rhs) const
 Multiplication operator. More...
 
Vector4 operator* (float rhs) const
 Multiplication operator. More...
 
Vector4operator*= (const Vector4 &rhs)
 Multiplication assignment operator. More...
 
Vector4operator*= (float rhs)
 Multiplication assignment operator. More...
 
Vector4 operator/ (const Vector4 &rhs) const
 Division operator. More...
 
Vector4 operator/ (float rhs) const
 Division operator. More...
 
Vector4operator/= (const Vector4 &rhs)
 Division assignment operator. More...
 
Vector4operator/= (float rhs)
 Division assignment operator. More...
 
Vector4 operator- () const
 Unary negation operator. More...
 
bool operator== (const Vector4 &rhs) const
 Equality operator. More...
 
bool operator!= (const Vector4 &rhs) const
 Inequality operator. More...
 
const float & operator[] (const unsigned int index) const
 Const array subscript operator overload. More...
 
float & operator[] (const unsigned int index)
 Mutable array subscript operator overload. More...
 
float Dot (const Vector3 &other) const
 Returns the dot product of this vector (4d) and another vector (3d). More...
 
float Dot (const Vector4 &other) const
 Returns the dot product of this vector and another vector. More...
 
float Dot4 (const Vector4 &other) const
 Returns the 4d dot product of this vector and another vector. More...
 
Vector4 Cross (const Vector4 &other) const
 Returns the cross produce of this vector and another vector. More...
 
float Length () const
 Returns the length of the vector. More...
 
float LengthSquared () const
 Returns the length of the vector squared. More...
 
void Normalize ()
 Normalizes the vector. More...
 
void Clamp (const Vector4 &min, const Vector4 &max)
 Clamps the vector between minimum and maximum vectors. More...
 
const float * AsFloat () const
 Returns the contents of the vector as an array of 4 floats. More...
 
float * AsFloat ()
 Returns the contents of the vector as an array of 4 floats. More...
 

Public Attributes

union {
   float   x
 x component More...
 
   float   r
 red component More...
 
   float   s
 s component More...
 
}; 
 
union {
   float   y
 y component More...
 
   float   g
 green component More...
 
   float   t
 t component More...
 
}; 
 
union {
   float   z
 z component More...
 
   float   b
 blue component More...
 
   float   p
 p component More...
 
}; 
 
union {
   float   w
 w component More...
 
   float   a
 alpha component More...
 
   float   q
 q component More...
 
}; 
 

Static Public Attributes

static const Vector4 ONE
 (1.0f,1.0f,1.0f,1.0f) More...
 
static const Vector4 XAXIS
 (1.0f,0.0f,0.0f,0.0f) More...
 
static const Vector4 YAXIS
 (0.0f,1.0f,0.0f,0.0f) More...
 
static const Vector4 ZAXIS
 (0.0f,0.0f,1.0f,0.0f) More...
 
static const Vector4 ZERO
 (0.0f, 0.0f, 0.0f, 0.0f) More...
 

Detailed Description

A four dimensional vector.

Components can be used as position or offset (x,y,z,w); color (r,g,b,a) or texture coords(s,t,p,q) .0

Definition at line 44 of file vector4.h.

Constructor & Destructor Documentation

Dali::Vector4::Vector4 ( )
inline

Default constructor, initializes the vector to 0.

.0

Definition at line 57 of file vector4.h.

Referenced by Cross().

Here is the caller graph for this function:

Dali::Vector4::Vector4 ( float  x,
float  y,
float  z,
float  w 
)
inlineexplicit

Conversion constructor from four floats.

.0

Parameters
[in]x(or r/s) component
[in]y(or g/t) component
[in]z(or b/p) component
[in]w(or a/q) component

Definition at line 74 of file vector4.h.

Dali::Vector4::Vector4 ( const float *  array)
inlineexplicit

Conversion constructor from an array of four floats.

.0

Parameters
[in]arrayof either xyzw/rgba/stpq

Definition at line 89 of file vector4.h.

Dali::Vector4::Vector4 ( const Vector2 vec2)
explicit

Conversion constructor from Vector2.

.0

Parameters
[in]vec2to copy from, z and w are initialized to 0

Definition at line 43 of file vector4.cpp.

Dali::Vector4::Vector4 ( const Vector3 vec3)
explicit

Conversion constructor from Vector3.

.0

Parameters
[in]vec3to copy from, w is initialized to 0

Definition at line 51 of file vector4.cpp.

Member Function Documentation

const float* Dali::Vector4::AsFloat ( ) const
inline

Returns the contents of the vector as an array of 4 floats.

The order of the values in this array are as follows: 0: x (or r, or s) 1: y (or g, or t) 2: z (or b, or p) 3: w (or a, or q) .0

Returns
the vector contents as an array of 4 floats.
Note
inlined for performance reasons (generates less code than a function call)

Definition at line 505 of file vector4.h.

Referenced by UtcDaliVector4AsFloatP(), and UtcDaliVector4ConstAsFloatP().

Here is the caller graph for this function:

float* Dali::Vector4::AsFloat ( )
inline

Returns the contents of the vector as an array of 4 floats.

The order of the values in this array are as follows: 0: x (or r, or s) 1: y (or g, or t) 2: z (or b, or p) 3: w (or a, or q) .0

Returns
the vector contents as an array of 4 floats.
Note
inlined for performance reasons (generates less code than a function call)

Definition at line 519 of file vector4.h.

void Dali::Vector4::Clamp ( const Vector4 min,
const Vector4 max 
)

Clamps the vector between minimum and maximum vectors.

.0

Parameters
[in]minthe minimum vector
[in]maxthe maximum vector

Definition at line 161 of file vector4.cpp.

References w, x, y, and z.

Referenced by Dali::Clamp(), and UtcDaliVector4ClampVector4P().

Here is the caller graph for this function:

Vector4 Dali::Vector4::Cross ( const Vector4 other) const

Returns the cross produce of this vector and another vector.

The cross produce of two vectors is a vector which is perpendicular to the plane of the two vectors. This is great for calculating normals and making matrices orthogonal.

.0

Parameters
[in]otherthe other vector
Returns
A vector containing the cross product

Definition at line 120 of file vector4.cpp.

References MATH_INCREASE_BY, Vector4(), x, y, and z.

Referenced by Dali::Matrix::OrthoNormalize(), and UtcDaliVector4CrossP().

Here is the call graph for this function:

Here is the caller graph for this function:

float Dali::Vector4::Dot ( const Vector3 other) const

Returns the dot product of this vector (4d) and another vector (3d).

The dot product is the length of one vector in the direction of another vector. This is great for lighting, threshold testing the angle between two unit vectors, calculating the distance between two points in a particular direction. .0

Parameters
[in]otherthe other vector
Returns
the dot product

Definition at line 99 of file vector4.cpp.

References MATH_INCREASE_BY, x, Dali::Vector3::x, y, Dali::Vector3::y, z, and Dali::Vector3::z.

Referenced by Dali::Quaternion::Length(), Dali::Quaternion::LengthSquared(), Dali::Quaternion::operator*(), Dali::Quaternion::operator*=(), Dali::Internal::Actor::RaySphereTest(), UtcDaliVector4Dot01P(), and UtcDaliVector4DotVector302P().

Here is the caller graph for this function:

float Dali::Vector4::Dot ( const Vector4 other) const

Returns the dot product of this vector and another vector.

The dot product is the length of one vector in the direction of another vector. This is great for lighting, threshold testing the angle between two unit vectors, calculating the distance between two points in a particular direction. .0

Parameters
[in]otherthe other vector
Returns
the dot product

Definition at line 106 of file vector4.cpp.

References MATH_INCREASE_BY, x, y, and z.

float Dali::Vector4::Dot4 ( const Vector4 other) const

Returns the 4d dot product of this vector and another vector.

.0

Parameters
[in]otherthe other vector
Returns
the dot product

Definition at line 113 of file vector4.cpp.

References MATH_INCREASE_BY, w, x, y, and z.

Referenced by Dali::Quaternion::AngleBetween(), Dali::Quaternion::Dot(), Dali::Internal::Path::SampleAt(), Dali::Internal::Path::SamplePosition(), and UtcDaliVector4Dot4P().

Here is the caller graph for this function:

float Dali::Vector4::Length ( ) const

Returns the length of the vector.

.0

Returns
the length.

Definition at line 131 of file vector4.cpp.

References MATH_INCREASE_BY, x, y, and z.

Referenced by Dali::Quaternion::Exp(), Normalize(), UtcDaliRandomAxisMethod(), and UtcDaliVector4LengthP().

Here is the caller graph for this function:

float Dali::Vector4::LengthSquared ( ) const

Returns the length of the vector squared.

This is faster than using Length() when performing threshold checks as it avoids use of the square root. .0

Returns
the length of the vector squared.

Definition at line 138 of file vector4.cpp.

References MATH_INCREASE_BY, x, y, and z.

Referenced by Dali::Internal::SceneGraph::Step::EvalVector4(), Dali::Internal::SceneGraph::VariableStep::EvalVector4(), Dali::Internal::SceneGraph::LessThan::EvalVector4(), Dali::Internal::SceneGraph::GreaterThan::EvalVector4(), Dali::Internal::SceneGraph::Inside::EvalVector4(), Dali::Internal::SceneGraph::Outside::EvalVector4(), UtcDaliVector4LengthSquaredP(), and UtcDaliVector4NormalizeP().

Here is the caller graph for this function:

void Dali::Vector4::Normalize ( )

Normalizes the vector.

Sets the vector to unit length whilst maintaining its direction. .0

Definition at line 145 of file vector4.cpp.

References Dali::EqualsZero(), Length(), MATH_INCREASE_BY, x, y, and z.

Referenced by Dali::Random::Axis(), Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::BuildOrthoPickingRay(), Dali::Internal::CameraActor::BuildPickingRay(), Dali::Matrix::OrthoNormalize(), UtcDaliVector4Dot01P(), UtcDaliVector4Dot4P(), UtcDaliVector4DotVector302P(), and UtcDaliVector4NormalizeP().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Vector4::operator!= ( const Vector4 rhs) const
inline

Inequality operator.

Utilises appropriate machine epsilon values.

.0

Parameters
[in]rhsThe vector to test against
Returns
true if the vectors are not equal

Definition at line 378 of file vector4.h.

Vector4 Dali::Vector4::operator* ( const Vector4 rhs) const
inline

Multiplication operator.

.0

Parameters
[in]rhsthe vector to multiply
Returns
A vector containing the result of the multiplication

Definition at line 230 of file vector4.h.

Vector4 Dali::Vector4::operator* ( float  rhs) const
inline

Multiplication operator.

.0

Parameters
[in]rhsthe float value to scale the vector
Returns
A vector containing the result of the scaling

Definition at line 244 of file vector4.h.

Vector4& Dali::Vector4::operator*= ( const Vector4 rhs)
inline

Multiplication assignment operator.

.0

Parameters
[in]rhsthe vector to multiply
Returns
itself

Definition at line 256 of file vector4.h.

References w, x, y, and z.

Vector4& Dali::Vector4::operator*= ( float  rhs)
inline

Multiplication assignment operator.

.0

Parameters
[in]rhsthe float value to scale the vector
Returns
itself

Definition at line 273 of file vector4.h.

Vector4 Dali::Vector4::operator+ ( const Vector4 rhs) const
inline

Addition operator.

.0

Parameters
[in]rhsvector to add.
Returns
A vector containing the result of the addition

Definition at line 166 of file vector4.h.

Vector4& Dali::Vector4::operator+= ( const Vector4 rhs)
inline

Addition assignment operator.

.0

Parameters
[in]rhsvector to add.
Returns
itself

Definition at line 180 of file vector4.h.

References w, x, y, and z.

Vector4 Dali::Vector4::operator- ( const Vector4 rhs) const
inline

Subtraction operator.

.0

Parameters
[in]rhsthe vector to subtract
Returns
A vector containing the result of the subtraction

Definition at line 197 of file vector4.h.

Vector4 Dali::Vector4::operator- ( ) const
inline

Unary negation operator.

.0

Returns
the negative value

Definition at line 351 of file vector4.h.

Vector4& Dali::Vector4::operator-= ( const Vector4 rhs)
inline

Subtraction assignment operator.

.0

Parameters
[in]rhsthe vector to subtract
Returns
itself

Definition at line 213 of file vector4.h.

References w, x, y, and z.

Vector4 Dali::Vector4::operator/ ( const Vector4 rhs) const
inline

Division operator.

.0

Parameters
[in]rhsthe vector to divide
Returns
A vector containing the result of the division

Definition at line 290 of file vector4.h.

Vector4 Dali::Vector4::operator/ ( float  rhs) const
inline

Division operator.

.0

Parameters
[in]rhsThe float value to scale the vector by
Returns
A vector containing the result of the scaling

Definition at line 304 of file vector4.h.

Vector4& Dali::Vector4::operator/= ( const Vector4 rhs)
inline

Division assignment operator.

.0

Parameters
[in]rhsthe vector to divide
Returns
itself

Definition at line 317 of file vector4.h.

References w, x, y, and z.

Vector4& Dali::Vector4::operator/= ( float  rhs)
inline

Division assignment operator.

.0

Parameters
[in]rhsthe float value to scale the vector by
Returns
itself

Definition at line 334 of file vector4.h.

Vector4& Dali::Vector4::operator= ( const float *  array)
inline

Assignment operator.

.0

Parameters
[in]arrayof floats
Returns
itself

Definition at line 129 of file vector4.h.

Vector4 & Dali::Vector4::operator= ( const Vector2 vec2)

Assignment operator.

Only sets x and y. z and w are left as they were .0

Parameters
[in]vec2to assign from.
Returns
itself

Definition at line 59 of file vector4.cpp.

References Dali::Vector2::x, x, Dali::Vector2::y, and y.

Vector4 & Dali::Vector4::operator= ( const Vector3 vec3)

Assignment operator.

Only sets x and y and z. w is left as it was .0

Parameters
[in]vec3to assign from
Returns
itself

Definition at line 67 of file vector4.cpp.

References x, Dali::Vector3::x, y, Dali::Vector3::y, z, and Dali::Vector3::z.

bool Dali::Vector4::operator== ( const Vector4 rhs) const

Equality operator.

Utilises appropriate machine epsilon values.

.0

Parameters
[in]rhsThe vector to test against
Returns
true if the vectors are equal

Definition at line 77 of file vector4.cpp.

References Dali::GetRangedEpsilon(), w, x, y, and z.

Here is the call graph for this function:

const float& Dali::Vector4::operator[] ( const unsigned int  index) const
inline

Const array subscript operator overload.

Asserts if index is out of range. Should be 0, 1, 2 or 3 .0

Parameters
[in]indexSubscript
Returns
The float at the given index

Definition at line 391 of file vector4.h.

References DALI_ASSERT_ALWAYS.

float& Dali::Vector4::operator[] ( const unsigned int  index)
inline

Mutable array subscript operator overload.

Asserts if index is out of range. Should be 0, 1, 2 or 3 .0

Parameters
[in]indexSubscript index
Returns
The float at the given index

Definition at line 406 of file vector4.h.

References DALI_ASSERT_ALWAYS.

Member Data Documentation

union { ... }
union { ... }
union { ... }
union { ... }
float Dali::Vector4::a

alpha component

Definition at line 549 of file vector4.h.

Referenced by Dali::Internal::Atlas::ClearBackground(), Dali::Integration::Log::ColorToString(), CreateBufferImage(), Dali::Toolkit::CreateSolidColorActor(), anonymous_namespace{utc-Dali-Button.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-PushButton.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-SuperBlurView.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-BubbleEmitter.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-HitTestAlgorithm.cpp}::DefaultIsActorTouchableFunction(), Dali::Internal::SceneGraph::RenderManager::DoRender(), Dali::Toolkit::Internal::AccessibilityManager::DoSetCurrentFocusActor(), Dali::Toolkit::Internal::BorderRenderer::DoSetOnStage(), Dali::Toolkit::Internal::Gradient::GenerateLookupTexture(), Dali::Internal::Actor::GetDefaultProperty(), Dali::Internal::SceneGraph::Renderer::GetOpacity(), Dali::Internal::SceneGraph::Node::InheritWorldColor(), Dali::Toolkit::Internal::ColorRenderer::InitializeRenderer(), Dali::Toolkit::Internal::anonymous_namespace{accessibility-manager-impl.cpp}::IsActorFocusableFunction(), anonymous_namespace{utc-Dali-HitTestAlgorithm.cpp}::IsActorHittableFunction(), anonymous_namespace{utc-Dali-RenderTask.cpp}::IsActorHittableFunction(), Dali::Internal::Actor::IsHittable(), anonymous_namespace{depth-layout.cpp}::DepthColorConstraint::operator()(), Dali::Internal::AnimateByOpacity::operator()(), Dali::Internal::AnimateToOpacity::operator()(), Dali::Internal::Render::Renderer::Render(), Dali::Internal::SceneGraph::RenderManager::Render(), Dali::Toolkit::Internal::BorderRenderer::SetBorderColor(), Dali::Toolkit::Internal::ColorRenderer::SetColor(), Dali::Internal::Context::SetCustomBlendColor(), Dali::Toolkit::Internal::TextField::SetProperty(), Dali::Toolkit::Internal::TextEditor::SetProperty(), Dali::Toolkit::Internal::ScrollBar::ShowIndicator(), Dali::Toolkit::Internal::Popup::StartTransitionAnimation(), Dali::Toolkit::Text::UintColorToVector4(), UtcDaliActorGetCurrentWorldColor(), UtcDaliAnimationAnimateBetweenActorColorAlphaCubicP(), UtcDaliAnimationAnimateBetweenActorColorAlphaFunctionCubicP(), UtcDaliAnimationAnimateBetweenActorColorAlphaFunctionP(), UtcDaliAnimationAnimateBetweenActorColorAlphaFunctionTimePeriodP(), UtcDaliAnimationAnimateBetweenActorColorAlphaP(), UtcDaliAnimationAnimateBetweenActorColorCubicP(), UtcDaliAnimationAnimateBetweenActorColorCubicWithDelayP(), UtcDaliAnimationAnimateBetweenActorColorP(), UtcDaliAnimationAnimateBetweenActorColorTimePeriodCubicP(), UtcDaliAnimationAnimateBetweenActorColorTimePeriodP(), and UtcDaliAnimationAnimateToActorColorAlphaP().

float Dali::Vector4::b

blue component

Definition at line 543 of file vector4.h.

Referenced by Dali::Internal::Atlas::ClearBackground(), Dali::Integration::Log::ColorToString(), Dali::Toolkit::Internal::Popup::CreateBacking(), CreateBufferImage(), Dali::Toolkit::CreateSolidColorActor(), anonymous_namespace{utc-Dali-Button.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-PushButton.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-SuperBlurView.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-BubbleEmitter.cpp}::CreateSolidColorImage(), Dali::Internal::SceneGraph::RenderManager::DoRender(), Dali::Toolkit::Internal::Gradient::GenerateLookupTexture(), Dali::Internal::Actor::GetDefaultProperty(), anonymous_namespace{grid-layout.cpp}::GridColorConstraint(), Dali::Internal::SceneGraph::Node::InheritWorldColor(), anonymous_namespace{spiral-layout.cpp}::SpiralColorConstraint::operator()(), anonymous_namespace{depth-layout.cpp}::DepthColorConstraint::operator()(), Dali::Internal::Render::Renderer::Render(), Dali::Internal::SceneGraph::RenderManager::Render(), Dali::Toolkit::Internal::Popup::SetBackingColor(), Dali::Internal::Context::SetCustomBlendColor(), Dali::Toolkit::Internal::TextEditor::SetProperty(), Dali::Toolkit::Internal::TextField::SetProperty(), anonymous_namespace{utc-Dali-Renderer.cpp}::TestConstraintNoBlue(), anonymous_namespace{utc-Dali-Material.cpp}::TestConstraintNoBlue(), anonymous_namespace{utc-Dali-PropertyBuffer.cpp}::TestConstraintNoBlue(), anonymous_namespace{utc-Dali-Geometry.cpp}::TestConstraintNoBlue(), anonymous_namespace{utc-Dali-Shader.cpp}::TestConstraintNoBlue(), Dali::Toolkit::Text::UintColorToVector4(), UtcDaliActorGetCurrentWorldColor(), and UtcDaliAnimationAnimateToActorColorBlueP().

float Dali::Vector4::g
const Vector4 Dali::Vector4::ONE
static

(1.0f,1.0f,1.0f,1.0f)

Definition at line 114 of file vector4.h.

Referenced by Dali::Toolkit::CreateSolidColorActor(), and UtcDaliHandleRegisterPropertyTypes().

float Dali::Vector4::p

p component

Definition at line 544 of file vector4.h.

float Dali::Vector4::q

q component

Definition at line 550 of file vector4.h.

float Dali::Vector4::r
float Dali::Vector4::s

s component

Definition at line 532 of file vector4.h.

float Dali::Vector4::t

t component

Definition at line 538 of file vector4.h.

float Dali::Vector4::w

w component

Definition at line 548 of file vector4.h.

Referenced by anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-RendererFactory.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddStretchRegionsToImage(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Random::Axis(), Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::BuildOrthoPickingRay(), Dali::Internal::CameraActor::BuildPickingRay(), Clamp(), anonymous_namespace{matrix.cpp}::Convert(), Dot4(), Dali::Quaternion::EulerAngles(), Dali::Quaternion::Exp(), Dali::Internal::PropertyInputAccessor::GetConstraintInputFloat(), Dali::Toolkit::Internal::GradientRenderer::GetStopOffsets(), Dali::NinePatchImage::GetStretchBorders(), anonymous_namespace{automation.cpp}::JsonPropertyValue::GetVector4(), Dali::Quaternion::IsIdentity(), Dali::Quaternion::Length(), Dali::Quaternion::LengthSquared(), Dali::Quaternion::Log(), Dali::Max(), Dali::Min(), Dali::Quaternion::operator*(), Dali::Matrix::operator*(), operator*=(), Dali::Quaternion::operator*=(), Dali::Vector3::operator*=(), operator+=(), Dali::Quaternion::operator-(), operator-=(), operator/=(), Dali::operator<<(), Dali::Internal::Serialize::operator<<(), Dali::Quaternion::operator==(), operator==(), Dali::Internal::Serialize::operator>>(), Dali::Internal::ProjectFull(), Dali::Quaternion::Quaternion(), Dali::Toolkit::Internal::ImageAtlas::Remove(), Dali::Internal::Actor::SetDefaultProperty(), Dali::Quaternion::SetEuler(), Dali::Quaternion::SetFromAxes(), Dali::Toolkit::Text::Decorator::Impl::SetGrabHandlePosition(), Dali::Toolkit::Internal::PushButton::SetIconPadding(), Dali::Matrix::SetInverseTransformComponents(), Dali::Toolkit::Internal::PushButton::SetLabelPadding(), Dali::Toolkit::Text::Decorator::Impl::SetSelectionHandlePosition(), Dali::Matrix::SetTransformComponents(), Dali::Toolkit::Text::Decorator::Impl::SetupActiveLayerPropertyNotifications(), Dali::Toolkit::Text::Decorator::Impl::SetUpPopupPositionNotifications(), anonymous_namespace{utc-Dali-ImageAtlas.cpp}::TextureCoordinateToPixelArea(), Dali::Quaternion::ToAxisAngle(), Dali::Internal::Unproject(), Dali::Internal::ImageActor::UpdateTexureRect(), Dali::Toolkit::Internal::ImageAtlas::Upload(), UtcDaliAlphaFunctionConstructorFromControlPointsN(), UtcDaliAlphaFunctionConstructorFromControlPointsP(), UtcDaliAlphaFunctionGetControlPointsFunctionP(), UtcDaliAnimationAnimateByVector4AlphaFunctionP(), UtcDaliAnimationAnimateToVector4AlphaFunctionP(), UtcDaliImageActor9Patch(), UtcDaliImageActorSetNinePatchBorder(), UtcDaliMatrixOperatorMultiply02P(), UtcDaliNinePatchImageGetChildRectangle(), UtcDaliQuaternionCtorAxisAngleVector3P(), UtcDaliQuaternionCtorCosSinThetaP(), UtcDaliQuaternionCtorDefaultP(), UtcDaliQuaternionCtorVector4P(), UtcDaliQuaternionLogP01(), UtcDaliQuaternionRotateVector4P(), UtcDaliVector4Assign01P(), UtcDaliVector4Assign03P(), UtcDaliVector4Constructor01P(), UtcDaliVector4Constructor02P(), UtcDaliVector4Constructor03P(), UtcDaliVector4Constructor04P(), UtcDaliVector4Constructor05P(), UtcDaliVector4OperatorSubscriptP(), Dali::Integration::Log::Vector4ToString(), anonymous_namespace{text-decorator.cpp}::WorldToLocalCoordinatesBoundingBox(), and Dali::Internal::RenderTask::WorldToViewport().

float Dali::Vector4::x

x component

Definition at line 530 of file vector4.h.

Referenced by anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-RendererFactory.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddStretchRegionsToImage(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Random::Axis(), Dali::Internal::CameraActor::BuildPickingRay(), Clamp(), Dali::Quaternion::Conjugate(), anonymous_namespace{matrix.cpp}::Convert(), Cross(), Dot(), Dot4(), Dali::Quaternion::EulerAngles(), Dali::Quaternion::Exp(), Dali::Toolkit::Text::Decorator::Impl::GetConstrainedPopupPosition(), Dali::Internal::PropertyInputAccessor::GetConstraintInputFloat(), Dali::Toolkit::Internal::GradientRenderer::GetStopOffsets(), Dali::NinePatchImage::GetStretchBorders(), Dali::Matrix::GetTransformComponents(), anonymous_namespace{automation.cpp}::JsonPropertyValue::GetVector4(), Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestWithinLayer(), Dali::Quaternion::IsIdentity(), Length(), LengthSquared(), Dali::Quaternion::Log(), Dali::Max(), Dali::Min(), Normalize(), Dali::Quaternion::operator*(), Dali::Matrix::operator*(), operator*=(), Dali::Quaternion::operator*=(), Dali::Vector3::operator*=(), operator+=(), Dali::Quaternion::operator-(), operator-=(), operator/=(), Dali::operator<<(), Dali::Internal::Serialize::operator<<(), Dali::Vector2::operator=(), operator=(), Dali::Vector3::operator=(), Dali::Quaternion::operator==(), operator==(), Dali::Internal::Serialize::operator>>(), Dali::Internal::GestureProcessor::ProcessAndEmit(), Dali::Internal::ProjectFull(), Dali::Quaternion::Quaternion(), Dali::Internal::Actor::RayActorTest(), Dali::Internal::Actor::RaySphereTest(), Dali::Toolkit::Internal::ImageAtlas::Remove(), Dali::Quaternion::Rotate(), Dali::Internal::Actor::ScreenToLocal(), Dali::Internal::Actor::SetDefaultProperty(), Dali::Quaternion::SetEuler(), Dali::Quaternion::SetFromAxes(), Dali::Toolkit::Internal::PushButton::SetIconPadding(), Dali::Matrix::SetInverseTransformComponents(), Dali::Toolkit::Internal::PushButton::SetLabelPadding(), Dali::Toolkit::Text::Decorator::Impl::SetSelectionHandlePosition(), Dali::Matrix::SetTransformComponents(), Dali::Toolkit::Text::Decorator::Impl::SetupActiveLayerPropertyNotifications(), anonymous_namespace{utc-Dali-ImageAtlas.cpp}::TextureCoordinateToPixelArea(), Dali::Quaternion::ToAxisAngle(), Dali::Internal::Unproject(), Dali::Internal::ImageActor::UpdateTexureRect(), Dali::Toolkit::Internal::ImageAtlas::Upload(), UtcDaliAlphaFunctionConstructorFromControlPointsN(), UtcDaliAlphaFunctionConstructorFromControlPointsP(), UtcDaliAlphaFunctionGetControlPointsFunctionP(), UtcDaliAnimationAnimateByVector4AlphaFunctionP(), UtcDaliAnimationAnimateToVector4AlphaFunctionP(), UtcDaliBubbleEmitterRestore(), UtcDaliImageActor9Patch(), UtcDaliImageActorSetNinePatchBorder(), UtcDaliNinePatchImageGetChildRectangle(), UtcDaliNinePatchImageGetStrechBorders(), UtcDaliQuaternionCtorAxisAngleVector3P(), UtcDaliQuaternionCtorCosSinThetaP(), UtcDaliQuaternionCtorDefaultP(), UtcDaliQuaternionCtorVector4P(), UtcDaliQuaternionOperatorMultiplicationVector3P(), UtcDaliQuaternionRotateVector3P(), UtcDaliQuaternionRotateVector4P(), UtcDaliVector2AssignP02(), UtcDaliVector4Assign01P(), UtcDaliVector4Assign02P(), UtcDaliVector4Assign03P(), UtcDaliVector4Constructor01P(), UtcDaliVector4Constructor02P(), UtcDaliVector4Constructor03P(), UtcDaliVector4Constructor04P(), UtcDaliVector4Constructor05P(), UtcDaliVector4CrossP(), UtcDaliVector4LengthP(), UtcDaliVector4LengthSquaredP(), UtcDaliVector4OperatorSubscriptP(), Dali::Integration::Log::Vector4ToString(), anonymous_namespace{text-decorator.cpp}::WorldToLocalCoordinatesBoundingBox(), Dali::Internal::RenderTask::WorldToViewport(), and Dali::Internal::XyPlaneIntersect().

const Vector4 Dali::Vector4::XAXIS
static

(1.0f,0.0f,0.0f,0.0f)

Definition at line 115 of file vector4.h.

Referenced by UtcDaliVector4CrossP(), UtcDaliVector4Dot01P(), UtcDaliVector4Dot4P(), and UtcDaliVector4DotVector302P().

float Dali::Vector4::y

y component

Definition at line 536 of file vector4.h.

Referenced by anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-RendererFactory.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddStretchRegionsToImage(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Random::Axis(), Dali::Internal::CameraActor::BuildPickingRay(), Clamp(), Dali::Quaternion::Conjugate(), anonymous_namespace{matrix.cpp}::Convert(), Cross(), Dot(), Dot4(), Dali::Quaternion::EulerAngles(), Dali::Quaternion::Exp(), Dali::Toolkit::Text::Decorator::Impl::GetConstrainedPopupPosition(), Dali::Internal::PropertyInputAccessor::GetConstraintInputFloat(), Dali::Toolkit::Internal::GradientRenderer::GetStopOffsets(), Dali::NinePatchImage::GetStretchBorders(), Dali::Matrix::GetTransformComponents(), anonymous_namespace{automation.cpp}::JsonPropertyValue::GetVector4(), Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestWithinLayer(), Dali::Quaternion::IsIdentity(), Length(), LengthSquared(), Dali::Quaternion::Log(), Dali::Max(), Dali::Min(), Normalize(), Dali::Quaternion::operator*(), Dali::Matrix::operator*(), operator*=(), Dali::Quaternion::operator*=(), Dali::Vector3::operator*=(), operator+=(), Dali::Quaternion::operator-(), operator-=(), operator/=(), Dali::operator<<(), Dali::Internal::Serialize::operator<<(), Dali::Vector2::operator=(), operator=(), Dali::Vector3::operator=(), Dali::Quaternion::operator==(), operator==(), Dali::Internal::Serialize::operator>>(), Dali::Internal::GestureProcessor::ProcessAndEmit(), Dali::Internal::ProjectFull(), Dali::Quaternion::Quaternion(), Dali::Internal::Actor::RayActorTest(), Dali::Internal::Actor::RaySphereTest(), Dali::Toolkit::Internal::ImageAtlas::Remove(), Dali::Quaternion::Rotate(), Dali::Internal::Actor::ScreenToLocal(), Dali::Internal::Actor::SetDefaultProperty(), Dali::Quaternion::SetEuler(), Dali::Quaternion::SetFromAxes(), Dali::Toolkit::Text::Decorator::Impl::SetGrabHandlePosition(), Dali::Toolkit::Internal::PushButton::SetIconPadding(), Dali::Matrix::SetInverseTransformComponents(), Dali::Toolkit::Internal::PushButton::SetLabelPadding(), Dali::Toolkit::Text::Decorator::Impl::SetSelectionHandlePosition(), Dali::Matrix::SetTransformComponents(), Dali::Internal::SceneGraph::Shader::SetUniforms(), Dali::Toolkit::Text::Decorator::Impl::SetupActiveLayerPropertyNotifications(), Dali::Toolkit::Text::Decorator::Impl::SetUpPopupPositionNotifications(), anonymous_namespace{utc-Dali-ImageAtlas.cpp}::TextureCoordinateToPixelArea(), Dali::Quaternion::ToAxisAngle(), Dali::Internal::Unproject(), Dali::Internal::ImageActor::UpdateTexureRect(), Dali::Toolkit::Internal::ImageAtlas::Upload(), UtcDaliAlphaFunctionConstructorFromControlPointsN(), UtcDaliAlphaFunctionConstructorFromControlPointsP(), UtcDaliAlphaFunctionGetControlPointsFunctionP(), UtcDaliAnimationAnimateByVector4AlphaFunctionP(), UtcDaliAnimationAnimateToActorColorP(), UtcDaliAnimationAnimateToVector4AlphaFunctionP(), UtcDaliBubbleEmitterRestore(), UtcDaliImageActor9Patch(), UtcDaliImageActorSetNinePatchBorder(), UtcDaliNinePatchImageGetChildRectangle(), UtcDaliQuaternionCtorAxisAngleVector3P(), UtcDaliQuaternionCtorCosSinThetaP(), UtcDaliQuaternionCtorDefaultP(), UtcDaliQuaternionCtorVector4P(), UtcDaliQuaternionOperatorMultiplicationVector3P(), UtcDaliQuaternionRotateVector3P(), UtcDaliQuaternionRotateVector4P(), UtcDaliVector2AssignP02(), UtcDaliVector4Assign01P(), UtcDaliVector4Assign02P(), UtcDaliVector4Assign03P(), UtcDaliVector4Constructor01P(), UtcDaliVector4Constructor02P(), UtcDaliVector4Constructor03P(), UtcDaliVector4Constructor04P(), UtcDaliVector4Constructor05P(), UtcDaliVector4CrossP(), UtcDaliVector4LengthP(), UtcDaliVector4LengthSquaredP(), UtcDaliVector4OperatorSubscriptP(), Dali::Integration::Log::Vector4ToString(), anonymous_namespace{text-decorator.cpp}::WorldToLocalCoordinatesBoundingBox(), Dali::Internal::RenderTask::WorldToViewport(), and Dali::Internal::XyPlaneIntersect().

const Vector4 Dali::Vector4::YAXIS
static

(0.0f,1.0f,0.0f,0.0f)

Definition at line 116 of file vector4.h.

Referenced by UtcDaliVector4CrossP(), UtcDaliVector4Dot01P(), UtcDaliVector4Dot4P(), and UtcDaliVector4DotVector302P().

float Dali::Vector4::z

z component

Definition at line 542 of file vector4.h.

Referenced by anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-RendererFactory.cpp}::AddChildRegionsToImage(), anonymous_namespace{utc-Dali-NinePatchImages.cpp}::AddStretchRegionsToImage(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Random::Axis(), Dali::Internal::CameraActor::BuildPickingRay(), Clamp(), Dali::Quaternion::Conjugate(), anonymous_namespace{matrix.cpp}::Convert(), Cross(), Dot(), Dot4(), Dali::Quaternion::EulerAngles(), Dali::Quaternion::Exp(), Dali::Toolkit::Text::Decorator::Impl::GetConstrainedPopupPosition(), Dali::Internal::PropertyInputAccessor::GetConstraintInputFloat(), Dali::Toolkit::Internal::GradientRenderer::GetStopOffsets(), Dali::NinePatchImage::GetStretchBorders(), Dali::Matrix::GetTransformComponents(), anonymous_namespace{automation.cpp}::JsonPropertyValue::GetVector4(), Dali::Quaternion::IsIdentity(), Length(), LengthSquared(), Dali::Quaternion::Log(), Dali::Max(), Dali::Min(), Normalize(), Dali::Quaternion::operator*(), Dali::Matrix::operator*(), operator*=(), Dali::Quaternion::operator*=(), Dali::Vector3::operator*=(), operator+=(), Dali::Quaternion::operator-(), operator-=(), operator/=(), Dali::operator<<(), Dali::Internal::Serialize::operator<<(), Dali::Vector3::operator=(), operator=(), Dali::Quaternion::operator==(), operator==(), Dali::Internal::Serialize::operator>>(), Dali::Internal::ProjectFull(), Dali::Quaternion::Quaternion(), Dali::Internal::Actor::RayActorTest(), Dali::Internal::Actor::RaySphereTest(), Dali::Toolkit::Internal::ImageAtlas::Remove(), Dali::Quaternion::Rotate(), Dali::Internal::Actor::ScreenToLocal(), Dali::Internal::Actor::SetDefaultProperty(), Dali::Quaternion::SetEuler(), Dali::Quaternion::SetFromAxes(), Dali::Toolkit::Internal::PushButton::SetIconPadding(), Dali::Matrix::SetInverseTransformComponents(), Dali::Toolkit::Internal::PushButton::SetLabelPadding(), Dali::Toolkit::Text::Decorator::Impl::SetSelectionHandlePosition(), Dali::Matrix::SetTransformComponents(), Dali::Toolkit::Text::Decorator::Impl::SetupActiveLayerPropertyNotifications(), anonymous_namespace{utc-Dali-ImageAtlas.cpp}::TextureCoordinateToPixelArea(), Dali::Quaternion::ToAxisAngle(), Dali::Internal::Unproject(), Dali::Internal::ImageActor::UpdateTexureRect(), Dali::Toolkit::Internal::ImageAtlas::Upload(), UtcDaliAlphaFunctionConstructorFromControlPointsN(), UtcDaliAlphaFunctionConstructorFromControlPointsP(), UtcDaliAlphaFunctionGetControlPointsFunctionP(), UtcDaliAnimationAnimateByVector4AlphaFunctionP(), UtcDaliAnimationAnimateToActorColorP(), UtcDaliAnimationAnimateToVector4AlphaFunctionP(), UtcDaliImageActor9Patch(), UtcDaliImageActorSetNinePatchBorder(), UtcDaliNinePatchImageGetChildRectangle(), UtcDaliQuaternionCtorAxisAngleVector3P(), UtcDaliQuaternionCtorCosSinThetaP(), UtcDaliQuaternionCtorDefaultP(), UtcDaliQuaternionCtorVector4P(), UtcDaliQuaternionOperatorMultiplicationVector3P(), UtcDaliQuaternionRotateVector3P(), UtcDaliQuaternionRotateVector4P(), UtcDaliVector4Assign01P(), UtcDaliVector4Assign02P(), UtcDaliVector4Assign03P(), UtcDaliVector4Constructor01P(), UtcDaliVector4Constructor02P(), UtcDaliVector4Constructor03P(), UtcDaliVector4Constructor04P(), UtcDaliVector4Constructor05P(), UtcDaliVector4CrossP(), UtcDaliVector4LengthP(), UtcDaliVector4LengthSquaredP(), UtcDaliVector4OperatorSubscriptP(), Dali::Integration::Log::Vector4ToString(), anonymous_namespace{text-decorator.cpp}::WorldToLocalCoordinatesBoundingBox(), and Dali::Internal::XyPlaneIntersect().

const Vector4 Dali::Vector4::ZAXIS
static

(0.0f,0.0f,1.0f,0.0f)

Definition at line 117 of file vector4.h.

Referenced by UtcDaliVector4CrossP(), UtcDaliVector4Dot01P(), UtcDaliVector4Dot4P(), and UtcDaliVector4DotVector302P().

const Vector4 Dali::Vector4::ZERO
static

(0.0f, 0.0f, 0.0f, 0.0f)

Definition at line 118 of file vector4.h.

Referenced by Dali::Random::Axis(), Dali::Toolkit::Internal::AtlasManager::CreateAtlas(), Dali::Toolkit::Text::View::GetShadowColor(), Dali::Toolkit::Text::View::GetTextColor(), Dali::Toolkit::Text::View::GetUnderlineColor(), Dali::Internal::BlendingOptions::SetBlendColor(), Dali::Toolkit::Internal::ImageAtlas::Upload(), UtcDaliBubbleEmitterRestore(), UtcDaliConstraintTestPropertyTypesP(), UtcDaliGeometryAnimatedProperty02(), UtcDaliGeometryConstraint02(), UtcDaliImageAtlasSetBrokenImage(), UtcDaliMaterialAnimatedProperty02(), UtcDaliMaterialConstraint02(), UtcDaliMaterialSetShader(), UtcDaliMatrixOperatorMultiply02P(), UtcDaliRendererAnimatedProperty02(), UtcDaliRendererConstraint02(), UtcDaliRendererFactoryGetBorderRenderer1(), UtcDaliRendererFactoryGetBorderRenderer2(), UtcDaliRendererFactoryGetColorRenderer1(), UtcDaliRendererFactoryGetColorRenderer2(), UtcDaliRendererFactoryResetRenderer1(), UtcDaliRendererFactoryResetRenderer2(), UtcDaliRendererPreMultipledAlpha(), UtcDaliRendererSetGetGeometry(), UtcDaliRendererSetGetMaterial(), UtcDaliRendererUniformMapMultipleUniforms01(), UtcDaliRendererUniformMapMultipleUniforms02(), UtcDaliRendererUniformMapPrecendence01(), UtcDaliRendererUniformMapPrecendence02(), UtcDaliRendererUniformMapPrecendence03(), UtcDaliRendererUniformMapPrecendence04(), UtcDaliRendererUniformMapPrecendence05(), UtcDaliRenderTaskSetClearColorN(), UtcDaliShaderAnimatedProperty02(), and UtcDaliShaderConstraint02().


The documentation for this struct was generated from the following files:
Dali Docs Home
Read more about Dali