DrillShape RotateShape
Rotates the drill shape by a given angle with respect to the reference point.
Overloads
public void RotateShape(float angle, Point3D refPoint) |
Parameters
float | angle | Angle in radians |
Point3D | refPoint | Reference point to use for the rotation |
Return value
void |
Example
Copy
bool pulsemode = false;
PointAndShootDrillShapePattern pointandShootPattern = new PointAndShootDrillShapePattern();
pointandShootPattern.UsePulseBurstMode = pulsemode;
// Create a Drill Pulse
DrillPulse pulse1 = new DrillPulse(2.5f, 2.5f, 5);
pointandShootPattern.AddDrillPulse(pulse1);
//Create a drill shape.
DrillShape drillShape = new DrillShape();
drillShape.SetPattern(pointandShootPattern);
//Add drill Points to the drill shape
drillShape.AddPointAndShootPoint(0, 0, 0);
drillShape.AddPointAndShootPoint(10, 10, 0);
drillShape.AddPointAndShootPoint(20, 20, 0);
// Add the Drill shape to vector image
vectorImage.AddDrill(drillShape);
GsiRectangle shapeBoundary = new GsiRectangle();
if (drillShape.DrillShapeBounday(shapeBoundary))
{
drillShape.RotateShape(0.1f, new Point3D(0, 0, 0));
}