#include <Vector2.h>
Definition at line 11 of file Vector2.h.
|
The default constructor, sets the vector to 0. |
|
Constructor. |
|
Destructor; does nothing. |
|
The vector r becomes w x r (cross product), w being a vector having just a z axis component. Definition at line 78 of file Vector2.h. References real. Referenced by PhysicalObject::fillContactMatrix(), ArticulatedAgentBase::fillContactMatrix(), and ArticulatedAgentQuasistatic::forwardAccelerations(). |
|
Gets the module of the vector: sqrt(x^2+y^2). Definition at line 37 of file Vector2.h. Referenced by ElasticLink::applyForces(), CappedRectangle::detectContacts(), and CappedRectangle::detectMouseContact(). |
|
Gets the squared module of the vector: x^2+y^2. Definition at line 44 of file Vector2.h. References real. Referenced by ComposedPhysicalObject::computeMassProperties(), CappedRectangle::detectContacts(), and Circle::detectMouseContact(). |
|
Normalizes the vector to have unit module Definition at line 47 of file Vector2.h. References real. Referenced by Pac::controll(), Circle::detectContacts(), and CappedRectangle::detectContacts(). |
|
The scalar product. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gets element i; i is numbered starting from 0 (i=0,1). Definition at line 86 of file Vector2.h. References real. |
|
The vector product (having a component only on the z axis; returns this component). |
|
Rotates the vector with angle alpha. If the vector is initially expressed in a reference system rotated with alpha relative to the laboratory reference system, after rotation the vector will be expressed in the laboratory reference system. Definition at line 69 of file Vector2.h. References real. Referenced by Simulator::applyMouseForce(), ArticulatedAgentQuasistatic::backwardDynamics(), ArticulatedAgentQuasistatic::computeBodyDerivatives(), ArticulatedAgentQuasistatic::computeBodyDerivativesWithoutContacts(), ArticulatedLink::computeForceQuasistatic(), ComposedPhysicalObject::computeMemberPositions(), Pac::controll(), ComposedPhysicalObject::detectMouseContact(), Circle::detectMouseContact(), CappedRectangle::detectMouseContact(), ArticulatedAgentBase::fillContactMatrix(), ArticulatedAgentQuasistatic::forwardAccelerations(), and ArticulatedAgentQuasistatic::forwardKinematics(). |
|
Sets element i to value value; i is numbered starting from 1 (i=1,2). |
|
Sets the vector to 0. Definition at line 28 of file Vector2.h. Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), PhysicalObject::computeDerivativesWithoutContacts(), ArticulatedLink::computeForceQuasistatic(), ComposedPhysicalObject::computeMassProperties(), ArticulatedLink::deleteContacts(), Circle::detectContacts(), and CappedRectangle::detectContacts(). |
|
|
Set vector components to the maximum of either current components or r components. Definition at line 60 of file Vector2.h. Referenced by ComposedPhysicalObject::computeMemberPositions(), Elastoid::integrate(), ArticulatedAgentQuasistatic::integrate(), and ArticulatedAgentQuasistatic::rollback(). |
|
Set vector components to the minimum of either current components or r components. Definition at line 54 of file Vector2.h. Referenced by ComposedPhysicalObject::computeMemberPositions(), Elastoid::integrate(), ArticulatedAgentQuasistatic::integrate(), and ArticulatedAgentQuasistatic::rollback(). |
|
|
Thyrix homepage Users' guide
(C) Arxia 2004-2005