Skip to content
Snippets Groups Projects
Commit 8c3b3e14 authored by jcarpent's avatar jcarpent
Browse files

[C++] Add setter for the class symmetric3

parent 4697412e
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,16 @@ namespace se3
/* Requiered by Inertia::operator== */
bool operator== (const Symmetric3Tpl & S2 ) { return data_ == S2.data_; }
void setIdentity()
{
data_[0] = data_[2] = data_[5] = 1.;
data_[1] = data_[3] = data_[4] = 0.;
}
void setZero() { data_.fill(0); }
void fill(Scalar value) { data_.fill(value); }
struct SkewSquare
{
const Vector3 & v;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment