E - base class generatedpublic abstract class OpenSimObjectFactory<E extends OpenSimObject>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(org.w3c.dom.Element elem)
Checks if this factory can parse the given DOM element.
|
E |
createDefault()
Creates a default instance
|
E |
parse(org.w3c.dom.Element elem)
Tries to parse the provided element
|
static void |
setOrientationXYZ(RotationMatrix3d R,
double x,
double y,
double z)
Set this rotations to represent a body-fixed rotation of X-Y-Z.
|
static void |
setOrientationXYZ(RotationMatrix3d R,
Point3d rot) |
public E createDefault()
public boolean canParse(org.w3c.dom.Element elem)
getComponentClass()elem - DOM elementpublic E parse(org.w3c.dom.Element elem)
elem - DOM elementpublic static void setOrientationXYZ(RotationMatrix3d R, Point3d rot)
public static void setOrientationXYZ(RotationMatrix3d R, double x, double y, double z)
R - rotation matrix to populatex - first angle (radians) rotation about body's x-axisy - second angle (radians) rotation about body's new y-axisz - third angle (radians) rotation about body's new y-axis