public PicBlockRef AddBlockRef(PicBlock block, Transform2D transf) { PicBlockRef blockRef = PicBlockRef.CreateNewBlockRef(GetNewEntityId(), block, transf); AddEntity(blockRef); return(blockRef); }
/// <summary> /// Create a new block reference /// </summary> /// <param name="block">An instance of the <see cref="PicBlock2D"/> class</param> /// <param name="pt">A <see cref="Vector2D"/> point to be used as translation from the origin of block coordinates</param> /// <param name="angle">A double angle value</param> /// <returns>A <see cref="PicBlockRef"/> entity</returns> public PicBlockRef AddBlockRef(PicBlock block, Vector2D pt, double angle) { PicBlockRef blockRef = PicBlockRef.CreateNewBlockRef(GetNewEntityId(), block, pt, angle); AddEntity(blockRef); return(blockRef); }