22 lines
459 B
C#
22 lines
459 B
C#
|
using System.Numerics;
|
||
|
|
||
|
namespace ln.ethercat.kinematics
|
||
|
{
|
||
|
public class TranslatingJoint : Joint
|
||
|
{
|
||
|
public TranslatingJoint() :base(Matrix4x4.Identity)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public Vector3 Translation
|
||
|
{
|
||
|
get => ForwardMatrix.Translation;
|
||
|
set
|
||
|
{
|
||
|
Matrix4x4 m = ForwardMatrix;
|
||
|
m.Translation = value;
|
||
|
ForwardMatrix = m;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|