comments how to do

This commit is contained in:
fruitstaa 2018-06-09 12:15:44 +02:00
parent 4772b41472
commit 3421201a98

View file

@ -1,5 +1,5 @@
// This source code is property of the Computer Graphics and Visualization
// chair of the TU Dresden. Do not distribute!
// This source code is property of the Computer Graphics and Visualization
// chair of the TU Dresden. Do not distribute!
// Copyright (C) CGV TU Dresden - All Rights Reserved
//
#include "AtomicTransform.h"
@ -37,7 +37,7 @@ AtomicRotationTransform::AtomicRotationTransform(Vec3 axis)
Mat4 AtomicRotationTransform::calculate_matrix()
{
return rotate(axis, (float)value);
return rotate(axis, (float)value);
}
void AtomicRotationTransform::drawIndicator(float size)
@ -83,20 +83,29 @@ void AtomicRotationTransform::drawActualIndicator(float size)
void AtomicRotationTransform::optimize_value(const Vec3& local_vector, const Vec3& target, bool inverse)
{
/*Task: Implement parameter optimization*/
// target into local_target
// get dofs
// project target into plane decided by which dofs exist
// scal mult local_target and local_vector
// use only degrees defined by dofs
// if inverse == true use -angle with set_value()
}
AtomicTranslationTransform::AtomicTranslationTransform(int dim)
: dim(dim)
AtomicTranslationTransform::AtomicTranslationTransform(int dim)
: dim(dim)
{
lower_limit = -10;
upper_limit = 10;
}
Mat4 AtomicTranslationTransform::calculate_matrix()
{
{
Mat4 result;
result.identity();
result(dim, 3) = (float)value;
result(dim, 3) = (float)value;
return result;
}