Beispiel #1
0
 public CylPosition Transform(Transform3D transf)
 {
     return(new CylPosition(
                transf.transform(_vPosition),
                HalfAxis.ToHalfAxis(transf.transformRot(HalfAxis.ToVector3D(_axis)))
                ));
 }
Beispiel #2
0
 public static CylPosition Transform(CylPosition cylPosition, Transform3D transform)
 {
     return(new CylPosition(
                transform.transform(cylPosition._vPosition),
                HalfAxis.ToHalfAxis(
                    transform.transformRot(HalfAxis.ToVector3D(cylPosition._axis))
                    )
                ));
 }
Beispiel #3
0
 public static BoxPosition Transform(BoxPosition boxPosition, Transform3D transform)
 {
     if (!boxPosition.IsValid)
     {
         throw new Exception("Invalid box position : can not transform");
     }
     return(new BoxPosition(
                transform.transform(boxPosition.Position)
                , HalfAxis.ToHalfAxis(transform.transformRot(HalfAxis.ToVector3D(boxPosition.DirectionLength)))
                , HalfAxis.ToHalfAxis(transform.transformRot(HalfAxis.ToVector3D(boxPosition.DirectionWidth)))
                ));
 }
Beispiel #4
0
 public static HAxis Transform(HAxis axis, Transform3D transform)
 {
     return(HalfAxis.ToHalfAxis(transform.transformRot(HalfAxis.ToVector3D(axis))));
 }