Class XyzabcUtil
Utility of XYZABC device.
public static class XyzabcUtil
- Inheritance
-
XyzabcUtil
- Inherited Members
Methods
BuildAnchorToSolid(Dictionary<Anchor, Solid>, List<Anchor>, Dictionary<string, Solid>)
Builds a dictionary mapping anchors to solids.
public static void BuildAnchorToSolid(this Dictionary<Anchor, Solid> dstAnchorToSolidDictionary, List<Anchor> anchors, Dictionary<string, Solid> keyToSolid)
Parameters
dstAnchorToSolidDictionary
Dictionary<Anchor, Solid>The destination dictionary to populate
anchors
List<Anchor>List of anchors
keyToSolid
Dictionary<string, Solid>Dictionary mapping anchor names to solids
GenerateCollisionIndexPairs(IXyzabcChain)
Generate collision index pairs for the XYZABC chain.
public static List<CollisionIndexPair> GenerateCollisionIndexPairs(this IXyzabcChain xyzabcChain)
Parameters
xyzabcChain
IXyzabcChainThe XYZABC chain
Returns
- List<CollisionIndexPair>
List of collision index pairs
GetMc(IXyzabcChain, out DVec3d)
Get machine coordinates.
public static void GetMc(this IXyzabcChain device, out DVec3d mc)
Parameters
device
IXyzabcChainThe XYZABC device
mc
DVec3dOutput machine coordinate as DVec3d
GetMc(IXyzabcChain, out double, out double, out double, out double, out double, out double)
Get machine coordinates. The output value set to NAN if the corresponding transformer does not exist.
public static void GetMc(this IXyzabcChain device, out double mcX, out double mcY, out double mcZ, out double mcA, out double mcB, out double mcC)
Parameters
device
IXyzabcChaindevice
mcX
doublemachine coordinate X
mcY
doublemachine coordinate Y
mcZ
doublemachine coordinate Z
mcA
doublemachine coordinate A (rad)
mcB
doublemachine coordinate B (rad)
mcC
doublemachine coordinate C (rad)
GetMcAbc_rad(IXyzabcChain, out Abc)
Get machine coordinates. The output value set to NAN if the corresponding transformer does not exist.
public static void GetMcAbc_rad(this IXyzabcChain device, out Abc mcAbc_rad)
Parameters
device
IXyzabcChaindevice
mcAbc_rad
AbcOutput machine coordinates ABC in radians
GetMcXyzabc(IXyzabcChain)
Get machine coordinates as DVec3d.
public static DVec3d GetMcXyzabc(this IXyzabcChain device)
Parameters
device
IXyzabcChainThe XYZABC device
Returns
- DVec3d
Machine coordinate as DVec3d. ABC in rad.
GetNp(IXyzabcChain)
Get normal and position from Hi.Numerical.Xyzabc.IXyzabcChain.GetChainBegin to Hi.Numerical.Xyzabc.IXyzabcChain.GetChainEnd.
public static DVec3d GetNp(this IXyzabcChain src)
Parameters
src
IXyzabcChainsrc
Returns
- DVec3d
normal and position
GetTransformationMat4d(IXyzabcChain)
Get transformation matrix from Hi.Numerical.Xyzabc.IXyzabcChain.GetChainBegin to Hi.Numerical.Xyzabc.IXyzabcChain.GetChainEnd.
public static Mat4d GetTransformationMat4d(this IXyzabcChain src)
Parameters
src
IXyzabcChainsrc
Returns
- Mat4d
transformation matrix
SetMc(IXyzabcChain, DVec3d)
Set machine coordinate.
public static void SetMc(this IXyzabcChain device, DVec3d mc)
Parameters
device
IXyzabcChaindevice
mc
DVec3dmachine coordinate
SetMc(IXyzabcChain, Vec3d)
Set machine coordinate.
public static void SetMc(this IXyzabcChain device, Vec3d mcXyz)
Parameters
device
IXyzabcChaindevice
mcXyz
Vec3dMachine coordinate XYZ
SetMc(IXyzabcChain, double, double, double)
Set machine coordinate. The input value do no effect if the corresponding transformer does not exist.
public static void SetMc(this IXyzabcChain device, double mcX, double mcY, double mcZ)
Parameters
device
IXyzabcChaindevice
mcX
doublemachine coordinate X
mcY
doublemachine coordinate Y
mcZ
doublemachine coordinate Z
SetMc(IXyzabcChain, double, double, double, double, double, double)
Set machine coordinate. The input value do no effect if the corresponding transformer does not exist.
public static void SetMc(this IXyzabcChain device, double mcX, double mcY, double mcZ, double mcA, double mcB, double mcC)
Parameters
device
IXyzabcChaindevice
mcX
doublemachine coordinate X
mcY
doublemachine coordinate Y
mcZ
doublemachine coordinate Z
mcA
doublemachine coordinate A
mcB
doublemachine coordinate B
mcC
doublemachine coordinate C
SetMcAbc_rad(IXyzabcChain, Vec3d)
Set machine coordinate. The input value do no effect if the corresponding transformer does not exist.
public static void SetMcAbc_rad(this IXyzabcChain device, Vec3d mcAbc_rad)
Parameters
device
IXyzabcChaindevice
mcAbc_rad
Vec3dMachine coordinate ABC in radians