Re: [eigen] Rigid transformations in eigen: use of dual quaternions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Rigid transformations in eigen: use of dual quaternions
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Sun, 13 Sep 2009 10:36:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=tHR3fLwa00swT7abqdQqpP5zet7URVk6QD/d48K+5VU=; b=v5hOxYlcrRbq8614PS9XDx6xZWX0ZhY6AyLJNHBXpj+vhDXWqOIMGY+MuIVlu0h+Ya V/+Nq7bO781322WGh2eNh5KE2sjNsImdVQcg4visKBEXrv9q8+KIb76vU6PBYxiIcPBy /FhYUvnJel/IjyjeLPeH+gjPqGlU51hJRAvbs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vn4weYIV7cvQDGyD+/KGEuYs13Z5P/uJXNTgBp6a73jGt8HeF3yruGN5X1M9YYxYDA BoS5ozeXsyV8jnTPOnb59767tx9+7g/MvpqXTCzoC+XndP6z3736OBLRT3R5VsE1GEW+ f7T4qE2h67hMuj7dHZLzdpi314+ZbR5ecBJ6g=
On Sat, Sep 12, 2009 at 8:22 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> float data[4];
> reinterpret_cast<Quaternionf*>(data)->slerp(....);
Why can you not do this?
float data[4];
Quaternionf( Map<Vector4f>(data,4) ).slerp(...);
For me the code seems to vectorize - at least the slerp() part. Even
when the code would not be vectorizing don't you think it is a bit
hard-core to pre-emptively optimize via a reinterpret_cast?
Hauke